ssh connection reuse -- controlmaster feature
Hi,
I am trying to ssh from a linux box Fedora core 5 to a solaris box running solaris 2.9.
On the linux box:
[pavan@turing CODE]$ ssh -v
OpenSSH_4.3p2, OpenSSL 0.9.8a 11 Oct 2005
On the solaris box:
bash-2.05$ ssh -v
SSH Version Sun_SSH_1.0.1, protocol versions 1.5/2.0.
Openssh > 4.0 introduced a new client feature called ControlMaster, ControlPath that allows connection reuse. I try to create a master connection from the solaris machine to the linux machine, as follows:
On the linux box:
[pavan@turing ~]$ cat ~/.ssh/config
Host *
ControlMaster auto
ControlPath ~/.ssh/master-%r@%h-%p
[pavan@turing ~]$ ssh -Nf pavan@solarishost
pavan@solarishost's password:
[pavan@turing ~]$
[pavan@turing ~]$
[pavan@turing ~]$ ls -la .ssh/
total 52
drwx 2 pavan root 4096 Jun 8 12:10 .
drwxr-xr-x 7 pavan root 4096 Jun 8 12:07 ..
-rw-r--r-- 1 pavan root61 Jun 8 12:07 config
-rw-r--r-- 1 pavan root 224 Jun 8 11:43 known_hosts
srw- 1 pavan root0 Jun 8 12:10 master-pavan@solarishost-22
[pavan@turing ~]$ date
Fri Jun 8 12:10:40 IST 2007
[pavan@turing ~]$ sshpavan@solarishost "ls"
a.out
id_dsa.pub
packages
pio.c
pio_save.c
[pavan@turing ~]$ sshpavan@solarishost "ls"
Connection to solarishost closed by remote host.
[pavan@turing ~]$ ls -la .ssh/
total 48
drwx 2 pavan root 4096 Jun 8 12:10 .
drwxr-xr-x 7 pavan root 4096 Jun 8 12:07 ..
-rw-r--r-- 1 pavan root61 Jun 8 12:07 config
-rw-r--r-- 1 pavan root 224 Jun 8 11:43 known_hosts
The connection is closed automatically. This does not happen with linux to linux connections. I am guessing this is something to do with Sunssh. Can someone shed some light on this?
Thanks,
-Pavan.
Message was edited by:
pedara

