Local ssh configuration

You can create shortcuts as well as special settings for hosts you want to connect to in the file $HOME/.ssh/config. The following lines can be handy for you, so that you don't have to type as much

Host atlas1
     HostName atlas1.atlas.aei.uni-hannover.de

Host atlas2
     HostName atlas2.atlas.aei.uni-hannover.de

Host atlas3
     HostName atlas3.atlas.aei.uni-hannover.de

Host atlas4
     HostName atlas4.atlas.aei.uni-hannover.de

Host titan1
     HostName titan1.atlas.aei.uni-hannover.de

Host titan2
     HostName titan2.atlas.aei.uni-hannover.de

Since most of you will use X.509 grid certificates you will not need to add the option User username there, as this is automatically derived from the internal mapping file. If you use interactive graphical tools such as matlab a lot, you might want to add the option ForwardX11Trusted yes there, making it unnecessary to add -Y to the command line every time you log in, but beware that there are some security issues there. The man page of ssh_config has more on this.

-- CarstenAulbert - 08 Jul 2009

DocumentationForm edit

Title Local ssh configuration
Description How to create shortcuts to log into hosts while setting special values ona per host basis
Tags ssh
Category User
Topic revision: r3 - 10 Feb 2012, ArthurVarkentin
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback