Just to point out what you probably already know, I compared the 'good' and 'bad' outputs you provided, and 'bad' shows that you received 'channel 1: rcvd eof' from the remote server. Someone more familiar with Net::SFTP may give a hint on why the remove server is acting differently on 'cron' or 'at now'.
. . . lxdenvmap162: channel 1: open confirm rwindow 0 rmax 32768 lxdenvmap162: sftp: Sending SSH2_FXP_INIT lxdenvmap162: sftp: Remote version: 3 lxdenvmap162: sftp: Sent message T:11 I:0 lxdenvmap162: sftp: Sent message T:12 I:1 lxdenvmap162: sftp: Received reply T:104 I:1 lxdenvmap162: sftp: Received 11 SSH2_FXP_NAME responses lxdenvmap162: sftp: Sent message T:12 I:2 lxdenvmap162: sftp: Received reply T:101 I:2 . . .
. . . lxdenvmap162: channel 1: open confirm rwindow 0 rmax 32768 lxdenvmap162: sftp: Sending SSH2_FXP_INIT lxdenvmap162: sftp: Remote version: 3 lxdenvmap162: sftp: Sent message T:11 I:0 lxdenvmap162: channel 1: rcvd eof #### <<<<<< lxdenvmap162: channel 1: output open -> drain lxdenvmap162: channel 1: obuf empty . . .
I use 'rsync' with public/private keys and 'ssh' to encrypt the session. It's not a pure-Perl solution, but has worked for years. Maybe answer this post on Monday, when it may be picked up in RAT, and more monks are available. Things that you could look into:
Good Luck!
"Well done is better than well said." - Benjamin Franklin
In reply to Re: Net::SFTP disconnect
by flexvault
in thread Net::SFTP disconnect
by gregor-e
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |