Tools · runs in your browser

SSH Config Generator

Add your servers below. The config file updates as you type. Nothing leaves your browser.

~/.ssh/config

    
How to connect

    

How to use the result

  1. Copy the text, or download the file.
  2. Open ~/.ssh/config in a text editor. If the file does not exist, create it.
  3. Paste the text at the end of the file and save.
  4. Run chmod 600 ~/.ssh/config.
  5. Connect with ssh and the short name.

What the options mean

  • Short name is what you type after ssh. A pattern such as 10.0.* applies the settings to every matching address.
  • Jump through connects to a server you cannot reach directly, by going through one you can. Use the short name of another server on this page.
  • Local port forward makes a port on the server show up on your own machine. 8080 localhost:80 lets you open localhost:8080 and see port 80 of the server.
  • Use only this key stops SSH from trying every key you have. It helps when a server rejects you for too many attempts.
  • Keep the connection alive sends a small signal every 60 seconds so idle sessions do not drop.
  • Forward SSH agent lets the server use your local keys for onward connections. Turn it on only for servers you trust.