Tigraine

Daniel Hoelbling-Inzko talks about programming

SSH address book

Posted by Daniel Hölbling on September 14, 2011

This may be old news to anyone somewhat used to Linux server administration, but Jammm just enlightened me so I thought I'd share.

Say you don't have a hostname associated with your server (yet), you may get bored of writing ssh root@192.168.0.1 all the time. Assuming you are using public key authentication anyways (and you should!) writing ssh myserver would be far more convenient.

Turns out you can do that by modifying the ~/.ssh/config file like this:

Host myserver
  HostName 192.168.0.1
  Port 22
  User root

Filed under tools
comments powered by Disqus

My Photography business

Projects

dynamic css for .NET

Archives

more