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

[1937 byte] By [pedaraa] at [2007-11-27 6:48:10]
# 1
> [pavan@turing ~]$ sshpavan@solarishost "ls"> Connection to solarishost closed by remote host.A connection closed immediately (rather than refused) is often because of tcp_wrappers being enabled and not allowing your client to connect.-- Darren
Darren_Dunhama at 2007-7-12 18:21:23 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2
u can enable the verbose output for ssh troubleshoot.ssh -vv pavan@solarishost "ls"
sonylwca at 2007-7-12 18:21:23 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 3
tcp_wrappers is disabled on this machine. In any case, the first ssh connection went through, I was wondering this is then not a problem with tcp_wrappers.
pedaraa at 2007-7-12 18:21:23 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 4

I tried using the -v -v option (-w option is not supported) but nothing useful is printed.

[pedara@dev-gndwks-01 ~]$ ssh -v -v pavan@solarishost 'ls'

OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003

debug1: Reading configuration data /etc/ssh/ssh_config

debug1: Applying options for *

a.c

a.out

id_dsa.pub

packages

pio.c

pio_save.c

procio

prusage.pl

run.sh

debug2: Received exit status from master 0

debug2: Received EOF from master

[pedara@dev-gndwks-01 ~]$ ssh -v -v pavan@solarishost 'ls'

OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003

debug1: Reading configuration data /etc/ssh/ssh_config

debug1: Applying options for *

Connection to solarishost closed by remote host.

pedaraa at 2007-7-12 18:21:23 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...