[Ssh-sftp-perl-users] Did not receive identification string Net-SFTP-0.10 on Linux (Gen too)
Brought to you by:
dbrobins
From: Froelke, J. <Joc...@hg...> - 2005-12-07 14:28:34
|
Hi, I try to establish a sftp connection with the Net-SFTP-0.10 module. For this purpose I try this here: ..... use Net::SFTP; ..... sub check_sftp($$$) { my $host = shift; my $user = shift; my $pw = shift; my $ret = "NOK"; $@ = ''; eval { my $sftp = Net::SFTP->new( $host, user=>$user, password=>$pw, debug=>"1" ); $ret = "OK" if (defined $sftp); }; if ($@ ne '') { $ret = "NOK"; } return($ret); } .......... The output looks like this: new_intranet: Reading configuration data /root/.ssh/config new_intranet: Reading configuration data /etc/ssh_config new_intranet: Allocated local port 1023. new_intranet: Connecting to XXX.XXX.XXX.XXX, port 22. new_intranet: Remote protocol version 2.0, remote software version OpenSSH_3.5p1 new_intranet: Net::SSH::Perl Version 1.25, protocol version 2.0. new_intranet: No compat match: OpenSSH_3.5p1. new_intranet: Connection established. new_intranet: Sent key-exchange init (KEXINIT), wait response. new_intranet: Algorithms, c->s: 3des-cbc hmac-sha1 none new_intranet: Algorithms, s->c: 3des-cbc hmac-sha1 none new_intranet: Entering Diffie-Hellman Group 1 key exchange. new_intranet: Sent DH public key, waiting for reply. new_intranet: Received host key, type 'ssh-dss'. new_intranet: Host 'XXX.XXX.XXX.XXX' is known and matches the host key. new_intranet: Computing shared secret key. new_intranet: Verifying server signature. new_intranet: Waiting for NEWKEYS message. new_intranet: Enabling incoming encryption/MAC/compression. new_intranet: Send NEWKEYS, enable outgoing encryption/MAC/compression. new_intranet: Sending request for user-authentication service. new_intranet: Service accepted: ssh-userauth. new_intranet: Trying empty user-authentication request. new_intranet: Authentication methods that can continue: publickey,password. new_intranet: Next method to try is publickey. new_intranet: Next method to try is password. new_intranet: Trying password authentication. new_intranet: Login completed, opening dummy shell channel. new_intranet: channel 0: new [client-session] new_intranet: Requesting channel_open for channel 0. new_intranet: channel 0: open confirm rwindow 0 rmax 32768 new_intranet: Got channel open confirmation, requesting shell. new_intranet: Requesting service shell on channel 0. And stops here.. On the server side I get this message: Dec 7 12:52:13 www005 sshd[25835]: Accepted password for master from ::ffff:XXX.XXX.XXX.XXX port 24891 ssh2 Dec 7 12:52:13 www005 sshd[25835]: subsystem request for sftp Is anyone out there, to help me out of my problem? Kind regards, Jochen Froelke __________________________________________________________________________________________________________________________ Diese E-Mail und ihre Dateianhaenge sind fuer den angegebenen Empfaenger und/oder die Empfaengergruppe bestimmt. Wenn Sie diese E-Mail versehentlich erhalten haben, setzen Sie sich bitte mit dem Absender oder Ihrem Systembetreuer in Verbindung. Diese Fusszeile bestaetigt ausserdem, dass die E-Mail auf bekannte Viren ueberprueft wurde. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender or the system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. |