Using the same username makes life a bit simpler:
Meh, better, but I’m really lazy!
I’d heard about tab-completion for hostnames from various blogs, but never knew how to do it. I hopped into #debian and thirty seconds later someone had kindly told me about
Not only is any host listed in your
~/.ssh/config auto-completed on the command line by hitting tab, but you can also specify what username to connect as! So my .ssh/config file looks something like:
Host host1.domain.com<br />
User randomuser<br />
Host www.somewhereelse.com<br />
User someotheruser<br />
Host mail.domain2.com<br />
Now I can just type:
to connect to host1.domain.com as randomuser.
man ssh_config for details and other options.