[Ssh-sftp-perl-users] scp_get problems
Brought to you by:
dbrobins
From: Radu H. <xr...@ya...> - 2007-10-17 19:42:43
|
Hello,=0A=0A=0A=0AThe code snippet I have a question about is this one:=0A= =0Amy $ssh2 =3D Net::SSH2->new();=0A$ssh2->connect($sourceServer) or die ("= Unable to connect"); =0A$ssh2->auth_keyboard('user', 'password') or die ("U= nable to login"); =0A$ssh2->scp_get($sourceFileName);=0A$ssh2->disconnect()= ;=0A=0A=0AI am using Net::SSH2. The problem is that the scp_get call hangs= =0Aindefinitely. I am trying to download a 15MB file. It seems it gets=0Ast= uck after about 12-13MB. Interesting is that if I repeat the=0Aexperiment, = it seems to stop at the same file size, for a while, then=0Ait seems to sti= ck to that new value for another while, and so on.=0AAnyway, it doesn't mak= e any progress past that point (not even a crash=0Awith or without an error= message). =0A=0A=0AI have the similar scp_put call that uploads that file = and that upload=0Aworks like a charm every time. Not a single problem. On t= he flip side,=0Athe download call I pasted did not work even once. I'd appr= eciate some=0Ahelp to get past this problem, if anybody knows the way out. = =0A=0A=0A=0AThanks,=0A=0ARadu=0A=0A=0A_____________________________________= _____________=0ADo You Yahoo!?=0ATired of spam? Yahoo! Mail has the best s= pam protection around =0Ahttp://mail.yahoo.com |