Click here to get back home

problem using Net::SFTP with pubkey

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
problem using Net::SFTP with pubkey arro239 09-01-2005
Get Chitika Premium
Posted by arro239 on September 1, 2005, 4:29 am
Please log in for more thread options


i've got a problem using Net::SFTP [which uses Net::SSH::Perl] - i've
install some existing script
which worked fine for me and installed on a new server [with fresh
version of Net::SSH::Perl]

this script is downloading a file via SFTP using pubkey authorization -
but for some reason i get smth like connection broken:

(here is what i get with debug=1)

processing ns_4
Downloading __SERVER_IP//home/plain_stats at ./get_ssh.pl line 158.
Net::SFTP from ns_4
RH9-3: Reading configuration data /root/.ssh/config
RH9-3: Reading configuration data /etc/ssh_config
RH9-3: Allocated local port 1023.
RH9-3: Connecting to 64.27.7.144, port 22.
RH9-3: Remote protocol version 1.99, remote software version
OpenSSH_3.5p1
RH9-3: Net::SSH::Perl Version 1.26, protocol version 2.0.
RH9-3: No compat match: OpenSSH_3.5p1.
RH9-3: Connection established.
RH9-3: Sent key-exchange init (KEXINIT), wait response.
RH9-3: Algorithms, c->s: 3des-cbc hmac-sha1 none
RH9-3: Algorithms, s->c: 3des-cbc hmac-sha1 none
waiting for 22838
RH9-3: Entering Diffie-Hellman Group 1 key exchange.
RH9-3: Sent DH public key, waiting for reply.
RH9-3: Received host key, type 'ssh-dss'.
RH9-3: Host '64.27.7.144' is known and matches the host key.
RH9-3: Computing shared secret key.
RH9-3: Verifying server signature.
RH9-3: Waiting for NEWKEYS message.
RH9-3: Enabling incoming encryption/MAC/compression.
RH9-3: Send NEWKEYS, enable outgoing encryption/MAC/compression.
RH9-3: Sending request for user-authentication service.
RH9-3: Service accepted: ssh-userauth.
RH9-3: Trying empty user-authentication request.
RH9-3: Authentication methods that can continue:
publickey,password,keyboard-interactive.
RH9-3: Next method to try is publickey.
RH9-3: Trying pubkey authentication with key file '/root/.ssh/id_dsa'
RH9-3: Login completed, opening dummy shell channel.
RH9-3: channel 0: new [client-session]
RH9-3: Requesting channel_open for channel 0.
RH9-3: channel 0: open confirm rwindow 0 rmax 32768
RH9-3: Got channel open confirmation, requesting shell.
RH9-3: Requesting service shell on channel 0.
RH9-3: channel 1: new [client-session]
RH9-3: Requesting channel_open for channel 1.
RH9-3: Sending subsystem: sftp
RH9-3: Requesting service subsystem on channel 1.
RH9-3: channel 1: open confirm rwindow 0 rmax 32768
RH9-3: sftp: Sending SSH2_FXP_INIT
RH9-3: sftp: Remote version: 3
RH9-3: sftp: Sent message T:17 I:0
RH9-3: sftp: Received stat reply T:105 I:0
RH9-3: sftp: Sent SSH2_FXP_OPEN I:1 P:/home/plain_stats
Error from __SERVER_IP: input must be 8 bytes long at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Crypt/DES.pm
line 57.


and on the server side in /var/log/secure i have


Aug 31 17:00:27 cp4 sshd[1771]: Accepted publickey for root from
__CLIENT__IP____ port 1023 ssh2
Aug 31 17:00:28 cp4 sshd[1771]: subsystem request for sftp


anything wrong? what could i miss in server/client SSH configuration?



Similar ThreadsPosted
Net::SFTP port problem July 26, 2004, 2:18 pm
Help with Net::SFTP when sftp on unix works. September 21, 2004, 11:14 am
Net::SFTP installation January 12, 2005, 11:35 pm
Net::SFTP on Windows March 21, 2005, 9:55 pm
Net::SFTP::Attributes October 23, 2006, 11:56 am
Net::SFTP transfer speed December 14, 2004, 8:14 am
Aargh. SFTP problems March 15, 2005, 2:35 pm
net::sftp connection close May 4, 2006, 6:27 am
NET::SFTP - how to close connection September 28, 2006, 7:22 am
password in SFTP::Foreign August 23, 2007, 11:48 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap