# vim:syntax=sshconfig:ts=4 # in case of no ssh-agent: #IdentityFile ~/.ssh/id_ed25519 #IdentityFile ~/.ssh/id_rsa # ...place that inside an extra .conf file. SendEnv LANG LC_* MUTTEXEC HashKnownHosts yes ForwardAgent yes ControlMaster auto ControlPath /run/user/%i/ssh/cm-%r@%h:%p # ControlMaster: to use SSH multiplexing with ProxyCommand (e.g. to reach host b through host a) # Host b # Hostname b.example.com # ProxyCommand ssh a.example.com -W %h:%p # # controlpath, controlmaster are the same as above