Skip to content

Instantly share code, notes, and snippets.

@jbernhard
Created April 7, 2014 13:07
Show Gist options
  • Save jbernhard/10019953 to your computer and use it in GitHub Desktop.
Save jbernhard/10019953 to your computer and use it in GitHub Desktop.
#
# ~/.ssh/config
#
# how to automate ssh logins
# this is my setup, obviously change your username and grads-XX
# I use
# ssh phy : for the main physics login server
# ssh ws : my workstation, while on campus
# ssh ws2 : my workstation, while off campus
# and you can make it passwordless by running 'ssh-keygen phy'
Host phy ws ws2 osg
User jeb65
Host phy
HostName login.phy.duke.edu
Host ws ws2
HostName grads-ad.internal.phy.duke.edu
Host ws2
Compression yes
ProxyCommand ssh phy -W %h:%p
Host osg
HostName osg-xsede.grid.iu.edu
Host gh
HostName github.com
User git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment