My ssh/.config file

So, I have been having to look this up almost every time I need to update ssh stuff on new machines that I’m just going to put it here now.

Host gprasanna
 User xxx
 HostName gprasanna.com.np

Host mycomputer.cs.trincoll.edu
 User test
 Port 30045

Host ubuntunp
 User xxx
 HostName ubuntu.org.np

Host *.cs.trincoll.edu
 ForwardX11 yes

Host *
 Compression yes
 CompressionLevel 9
 FallBackToRsh yes
 KeepAlive no

What this file lets you do is, remember just the aliases and not be bothered by the low level details like what weird port number is open for ssh. :)

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Reddit
  • Slashdot
  • description
  • LinkedIn
  • Live
  • StumbleUpon
  • Technorati

Comments (4)

HimanshuOctober 3rd, 2009 at 2:46 pm

For most dot-config-files that I frequently use I have a repository on github so that way I can always clone them on a new system and get my work environment replicated with a simple git clone :)

PrasannaOctober 10th, 2009 at 6:07 pm

That’s a flippin’ great idea. :)

badasskungfuDecember 10th, 2009 at 10:33 am

Himanshu- the trouble is though, you’d need git installed on every machine. ki kaso?
Pras- new look for the site eh?

PrasannaDecember 10th, 2009 at 8:57 pm

Dude, I’ve had this look since forever.. you just don’t visit frequently enough.

Leave a comment

Your comment