BowerStudios.com

  • My Lab
  • Family
  • Friends
  • Professional
  • About
Home

Favored ssh client connection settings

daniel —Mon, 02/25/2013 - 3:03pm

  • BSD
  • Linux

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

Navigation

  • Search
  • Recent content
  • Contact Me
  • Mail
  • Pass Hasher
  • Bower Studios Admin

Quotes

daniel —Wed, 12/03/2008 - 8:57pm

If there is anything the nonconformist hates worse than a conformist, it's another nonconformist who doesn't conform to the prevailing standard of nonconformity.

—

Bill Vaughan

  • Log in to post comments
  • daniel's quotes

Popular content

Last viewed:

  • Welcome to my Laboratory
  • Improving the Security of Your Site by Breaking Into it
  • Quotes 831
  • Rounding on the JVM
  • JSP - JSTL and tags for each example

Copyright 2022 Daniel Bower
  • My Lab
  • Family
  • Friends
  • Professional
  • About