long ssh communication



Hi,

I connect from a debian machine with OpenSSH_3.8.1p1 to solaris 9
machines with Sun_SSH_1.0.1 using Perl modul Net::SSH::Perl. It takes
several minutes to run a command (who or something).

Connecting to a machine with OpenSSH (solaris 8) takes a second and
running ssh from a command line to solaris 9 Sun_SSH is also ok. Below
is debug output.

Could someone point me where to look at to cut down these times?

___START_DEBUGG_OUTPUT___
Reading configuration data /home/www-data/.ssh/config
Reading configuration data /etc/ssh_config
Connecting to host, port 22.
Remote protocol version 2.0, remote software version Sun_SSH_1.0.1
Net::SSH::Perl Version 1.28, protocol version 2.0.
No compat match: Sun_SSH_1.0.1.
Connection established.
Sent key-exchange init (KEXINIT), wait response.
Algorithms, c->s: 3des-cbc hmac-sha1 none
Algorithms, s->c: 3des-cbc hmac-sha1 none

##here waits around a minute

Entering Diffie-Hellman Group 1 key exchange.
Sent DH public key, waiting for reply.
Received host key, type 'ssh-dss'.
Host 'host' is known and matches the host key.
Computing shared secret key.

##here waits around a minute

Verifying server signature.

##here waits around half a minute

Waiting for NEWKEYS message.
Enabling incoming encryption/MAC/compression.
Send NEWKEYS, enable outgoing encryption/MAC/compression.
Sending request for user-authentication service.
Service accepted: ssh-userauth.
Trying empty user-authentication request.
Authentication methods that can continue: publickey,password.
Next method to try is publickey.
Trying pubkey authentication with key file '/home/www-data/.ssh/id_dsa'
Login completed, opening dummy shell channel.
channel 0: new [client-session]
Requesting channel_open for channel 0.
channel 0: open confirm rwindow 0 rmax 16384
Got channel open confirmation, requesting shell.
Requesting service shell on channel 0.
channel 1: new [client-session]
Requesting channel_open for channel 1.
Entering interactive session.
Sending command: who
Requesting service exec on channel 1.
channel 1: open confirm rwindow 0 rmax 16384
channel 1: rcvd eof
channel 1: output open -> drain
input_channel_request: rtype exit-status reply 0
channel 1: rcvd close
channel 1: input open -> closed
channel 1: close_read
channel 1: obuf empty
channel 1: output drain -> closed
channel 1: close_write
channel 1: send close
channel 1: full closed


Many thanks.

--
Radek
.



Relevant Pages

  • Re: Net:SFTP Configuration
    ... Connecting to sacsun120... ... Remote protocol version 2.0, ... Login completed, opening dummy shell channel. ... requesting shell. ...
    (perl.beginners)
  • Re: long ssh communication
    ... Connecting to host, port 22. ... Received host key, type 'ssh-dss'. ... Login completed, opening dummy shell channel. ... Got channel open confirmation, requesting shell. ...
    (comp.security.ssh)
  • Net::SSH::W32Perl Script hanging when trying to return data
    ... Im trying to return an ls -l and when I execute my Perl Script it ... Login completed, opening dummy shell channel. ... requesting shell. ... Requesting service shell on channel 0. ...
    (perl.beginners)
  • Net::SSH::W32Perl Script hanging when trying to return data
    ... Im trying to return an ls -l and when I execute my Perl Script it ... Login completed, opening dummy shell channel. ... requesting shell. ... Requesting service shell on channel 0. ...
    (comp.lang.perl.modules)
  • Net::SSH::W32Perl Script hanging when trying to return data
    ... Subject: Net::SSH::W32Perl Script hanging when trying to return data ... phl3-0021647: Reading configuration data /etc/ssh_config ... Login completed, opening dummy shell channel. ... requesting shell. ...
    (comp.lang.perl.modules)