I call this "mssh" (Matt's ssh).
It should remember that if I type:
mssh 10.2.1.1
I really mean
ssh msergeant@10.2.1.1
. But if I try
mssh 10.2.2.2
it should remember I wanted
ssh msergeant@10.2.2.2
.
See I use different usernames in different places. It should be smart enough to cache the user I use on different hosts. And perhaps ask if it hasn't cached one before.
Should be quite trivial to write.
Shell script? (Score:3, Insightful)
That way you won't have to worry about the nightmare of dealing with forking, IO transfer, terminals, and ...the list goes on
Reply to This
ssh config? (Score:3, Insightful)
Host mail.optiron.com
User wintercm
And then I can just do 'ssh mail.optiron.com' and it adds the '-l wintercm' in there for me. You can have as many of these 'Host' declarations as you want.
Reply to This
Re:ssh config? (Score:5, Informative)
There's more info in 'man ssh_config' and <plug>I wrote an article [linuxjournal.com] for LJ on it too.</plug>
-DA [coder.com]
Reply to This
Parent
Re:ssh config? (Score:2, Insightful)
Re:ssh config? (Score:2)
Re:ssh config? (Score:2)