Re: Can SSH Default to Different Usernames Based on Remote Host?

2005-08-28 Thread Jerome BENOIT
Hello Jeff, Jeff Stevens wrote: Suppose I am working with three machines. I'm logged into host "workstation" and I would like to ssh to hosts "remote0" and "remote1". "id_dsa" and "id_dsa.pub" exist on "workstation". I've added "id_dsa.pub" from "workstation" to "authorized_keys2" on hosts "re

Re: Can SSH Default to Different Usernames Based on Remote Host?

2005-08-28 Thread Jeff Stevens
> > I can "ssh remote0" and am able to log in without further prompting. > > All works well. On the other hand, I have to specify my username in > > "ssh [EMAIL PROTECTED]" when connecting to "remote1". This is, of course, > > because my username on "workstation" and "remote1" differ. > > > > I'

Re: Can SSH Default to Different Usernames Based on Remote Host?

2005-08-28 Thread Roel Schroeven
Roel Schroeven wrote: Yes; refer to the manpage for ssh_config. In short, create $HOME/.ssh/config with an entrie like Of course I meant to write "entry" instead of "entrie". My first version had multiple entries and apparently I used a very naive algorithm for converting from plural to sing

Re: Can SSH Default to Different Usernames Based on Remote Host?

2005-08-28 Thread Roel Schroeven
Jeff Stevens wrote: Suppose I am working with three machines. I'm logged into host "workstation" and I would like to ssh to hosts "remote0" and "remote1". "id_dsa" and "id_dsa.pub" exist on "workstation". I've added "id_dsa.pub" from "workstation" to "authorized_keys2" on hosts "remote0" and "

Can SSH Default to Different Usernames Based on Remote Host?

2005-08-28 Thread Jeff Stevens
Suppose I am working with three machines. I'm logged into host "workstation" and I would like to ssh to hosts "remote0" and "remote1". "id_dsa" and "id_dsa.pub" exist on "workstation". I've added "id_dsa.pub" from "workstation" to "authorized_keys2" on hosts "remote0" and "remote1". I've used "s