[Ssh-sftp-perl-users] Net SSH2 scp_get/scp_put problems.
Brought to you by:
dbrobins
From: Rutger O. <ov...@us...> - 2006-02-11 16:18:33
|
I've been trying out Net SSH2: http://search.cpan.org/~dbrobins/Net-SSH2-0.06/ I installed: openssl-0.9.8a.tar.gz libssh2-0.12.tar.gz But scp_get does not work on files > 25k or so. For a 2k file, it works, but larger files receive a segmentation fault. scp_put just creates a 0 byte file on the remote system but doesn't transfer the contents. Any hints on why these fail? #-- my $ssh2 = Net::SSH2->new(); $ssh2->connect("shell.sourceforge.net"); $ssh2->auth_publickey(...); $ssh2->scp_get('/home/../file', '/home/../file'); #-- When I strace the script on scp_get, I receive: send(3, ",\27\331\264\26\v\f\222Q\34\311\274\331>\256\'\337$Sw\361"..., 52, 0x4000) = 52 fcntl64(3, F_SETFL, O_RDONLY) = 0 getpid() = 10697 getpid() = 10697 send(3, "V\277\10&k\350>\231\262\360e]\204\226\245V\272\373\305"..., 52, 0x4000) = 52 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ I was connected to shell.sourceforge.net which advertises SSH-1.99-OpenSSH_3.6.1p2. Transferring the file with normal command line "scp" works. |