[oclug] SSH configuration tricks
Dave O'Neill
dave at nexus.carleton.ca
Thu Feb 1 23:12:32 EST 2001
All of the useful SSH commandline options David mentioned in his talk
tonight can also be used in the .ssh/config file. It's all documented in
the "CONFIGURATION FILES" section of the SSH man page, but here's
an example.
Let's say that you are user 'dmo' at home, and 'doneill' at work, and you
want to set it up so that you don't have to type things like:
ssh doneill at gateway.myjob.com -A -C -P -X -c blowfish \
-L 8080:intranet.i.myjob.com:80 \
-L 6667:irc.i.myjob.com:6667 \
-L 110:pop3.i.myjob.com:110
Well, you can configure all of that in your config file. Here's an entry
that will take care of the same things as the above line:
Host work
User doneill
ForwardX11 yes
ForwardAgent yes
Cipher blowfish
Compression yes
HostName gateway.myjob.com
LocalForward 8080 intranet.i.myjob.com:80
LocalForward 6667 irc.i.myjob.com:6667
LocalForward 110 pop3.i.myjob.com:110
Now, with this in your .ssh/config, you can just type
ssh work
and all of your options and forwarding will be set up for you.
-dave0
--
dmo at acm dot org
More information about the OCLUG
mailing list