How create multiples ssh on same host without asking same password
Ben Lindstrom
mouring at etoh.eviladmin.org
Fri Jul 2 02:29:01 EST 2004
On Thu, 1 Jul 2004, Eric LeBlanc wrote:
> On Thu, 1 Jul 2004, Damien Miller wrote:
> > Eric LeBlanc wrote:
> > > Hello,
> > >
> > > I used the SecureShell windows client from ssh.com and it have a cool
> > > feature: Once I logged on a server with ssh, I was able to create more
> > > terminals without being asked for a password again. It seems that it use
> > > the 'same channel' created from the first ssh client.
> > >
> > > So, it's possible with openssh on linux/bsd? If yes, how? If not, can you
> > > add this feature?
> >
> > Already done - see ControlMaster in the ssh_config manpage of the
> > current CVS version.
> >
> > This will be in the next release.
> >
> > -d
> >
>
> Hello,
>
> Thank you, it works very well, but I think that the man page need
> more details about it.
>
> For example, it's not pratical (if I understand well) to set the
> ControlPath and ControlMaster directly on ssh_config. The problem is when
> I setup like this:
>
> ControlMaster=yes
> ControlPath=/wathever/you/want
>
Nada.
You want.
yume:~ mouring$ cat ~/.ssh/config
Host site-m
Hostname site.org
ControlMaster yes
ControlPath ~/.ssh/site
Host eviladmin-s
ControlPath ~/.ssh/site
yume:~ mouring$
Then you can use "site-m" to create the initial connection and "site-s" to
establish channels.
Even works with sftp and scp nicely.
- Ben
More information about the openssh-unix-dev
mailing list