Favored ssh client connection settings
daniel Mon, 02/25/2013 - 3:03pm
I thought I'd share my favored ssh client connection settings (~/.ssh/config). I set my connection settings fairly strict, so this combo is only used for a trusted workstation. This collection of settings demonstrates a fair number of ssh features:
#Only send ssh keys specified for the host in this file
IdentitiesOnly yes
Host machine2
HostName 192.168.1.2
# Use this ssh key
IdentityFile /home/user/.ssh/id_rsa
#Allow ssh keys to be forwarded (chained across machines)
ForwardAgent yes
#Forward windowing environment (run gui program display on client)
ForwardX11 yes
#Expose remote port 5432 on 65432 locally
LocalForward localhost:65432 localhost:5432
#Share ssh connection for multiple consoles/programs associated with your session
ControlMaster auto
ControlPath /home/user/.ssh/connections/%r@%h:%p
#Display visual ascii art signature for host
VisualHostKey yes
#disable ldap integration (may speed up initial connection)
GSSAPIAuthentication no
- Log in to post comments