The Daily Build

Icon

Software Development, version 3.0

How to Tell SSH Who You Are

Ssh has amazing capabilities that you probably aren’t using on a daily basis.

The capability that you probably aren’t using, and the easiest to use, is customizing your config file (in ~/.ssh/config) for the various servers you log into.

For example, I frequently log into about ten different servers using at least four different usernames. By default, if I type “ssh server” the client will use my login name on the client machine to try to log into the server — which is usually wrong. Instead you can tell your ssh client which username to use on each server. (Thanks to Rich Adams for the tip.)

You can customize a variety of settings — not just the username. For example, I specify a different identity file for a couple of servers.

This saves a bunch of typing and occasional confusion. (By avoiding login errrors as I try to log into a server using the wrong username and can’t figure out why my password isn’t working…)

(This is the first post in series of posts about how to get the most out of ssh. Make sure you don’t miss the rest of the series: subscribe to my feed or follow me on twitter.)

Share and Enjoy:
  • del.icio.us
  • Digg
  • Sphinn
  • Facebook
  • Mixx
  • Google Bookmarks
  • Twitter
  • FriendFeed
  • Posterous
  • email

Related posts:

  1. How to Use SSH Remote Port Forwarding to Set Up Secure Tunnels Ssh tunneling can be a bit mind bending at first,...
  2. Open an SSH Tunnel in Four Seconds or Less As I mentioned in a previous post on ssh configuration,...
  3. Use SSH to Forward Multiple Protocols to Multiple Machines Let's say you have a half-dozen machines at work you...
  4. Use Local SSH Forwarding to Reduce the Number of Manual Hops Local port forwarding is the same as remote port forwarding...
  5. Python Exception Handling: Cleanup and Reraise I’ve had this code around for a while and...

Category: ssh

Tagged: , , ,

Leave a Reply

Related Posts

Related posts:

  1. How to Use SSH Remote Port Forwarding to Set Up Secure Tunnels Ssh tunneling can be a bit mind bending at first,...
  2. Open an SSH Tunnel in Four Seconds or Less As I mentioned in a previous post on ssh configuration,...
  3. Use SSH to Forward Multiple Protocols to Multiple Machines Let's say you have a half-dozen machines at work you...
  4. Use Local SSH Forwarding to Reduce the Number of Manual Hops Local port forwarding is the same as remote port forwarding...
  5. Python Exception Handling: Cleanup and Reraise I’ve had this code around for a while and...