myunix.org - ssh config generator
tools

SSH Config Generator

Build your ~/.ssh/config file without memorising the syntax. Add as many hosts as you need, copy the result.

~/.ssh/config
// hosts
click a host to edit
// quick reference
Host - alias you type in terminal
HostName - real IP or domain
User - login username
Port - default is 22
IdentityFile - path to private key
ProxyJump - jump through another host
ServerAliveInterval - keepalive seconds
ForwardAgent - pass key to remote
// output
~/.ssh/config
# Add a host on the left to generate config
hosts: 0
lines: 0
// how to use
1. Add your hosts above
2. Copy the config block
3. Paste into ~/.ssh/config
4. Set permissions: chmod 600 ~/.ssh/config
5. Connect: ssh myserver
// wildcard hosts

Use Host * as the last entry to set defaults for all connections - keepalive, compression, key path. Specific hosts override these.

// jump hosts

ProxyJump lets you reach servers behind a firewall. You can chain jumps: ProxyJump bastion,internal. Requires SSH 7.3+.

// multiple keys

Each host can use a different IdentityFile. Keep work and personal keys separate. Use IdentitiesOnly yes to stop SSH trying all keys.