Hello, I connect from my computer to several systems with one specific user login on each system. By default, openSSH use the current login name as default name to the remote host. As each login may have been generated randomly, I would like to don't have to specify the login for each computer. So Is there any way to include a configuration file that gives for each remote host, the default login name to use ? Damien
Damien Touraine wrote:> I connect from my computer to several systems with one specific user > login on each system. By default, openSSH use the current login name as > default name to the remote host. As each login may have been generated > randomly, I would like to don't have to specify the login for each > computer. > > So Is there any way to include a configuration file that gives for each > remote host, the default login name to use ?Which part of the ssh_config(5) man page did you find unclear on this subject? -- Darren Tucker (dtucker at zip.com.au) GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.
On Fri, 2004-12-10 at 10:32 +0100, Damien Touraine wrote:> Hello, > > I connect from my computer to several systems with one specific user > login on each system. By default, openSSH use the current login name as > default name to the remote host. As each login may have been generated > randomly, I would like to don't have to specify the login for each computer. > > So Is there any way to include a configuration file that gives for each > remote host, the default login name to use ?~/.ssh/config host host1 Hostname host1 User user1 host host2 Hostname host2 User user2 ad nausicum... -- Mark Janssen -- maniac(at)maniac.nl Unix / Linux, Open-Source and Internet Consultant PGP: 0x357D2178 Skype: markmjanssen ICQ: 129696007 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20041210/786e8430/attachment.bin
Mark Janssen wrote:>On Fri, 2004-12-10 at 10:32 +0100, Damien Touraine wrote: > > >>Hello, >> >>I connect from my computer to several systems with one specific user >>login on each system. By default, openSSH use the current login name as >>default name to the remote host. As each login may have been generated >>randomly, I would like to don't have to specify the login for each computer. >> >>So Is there any way to include a configuration file that gives for each >>remote host, the default login name to use ? >> >> > >~/.ssh/config > >host host1 > Hostname host1 > User user1 > >host host2 > Hostname host2 > User user2 > >ad nausicum... > > >Thank you very much, and I promess that next time I will better read the documentation ... Sorry, Damien