I am trying to transfer a large file between two remote hosts (both on different subnets). I found this command to work the first time:
scp -3 root@foo:/path/to/largefile user@bar:/path/to/where/it/should/go/
The command worked the first time, now when I attempt to run it again to transfer the other files, it never transfers. Instead I get a prompt for a password and then it exits with an exit code 1. Running -v
gives me:
debug1: Sending command: scp -v -f /run/sr-mount/3e3a905f-28ad-01b4-d50a-1ffe151ed28a/debian-8.8.0-amd64-CD-1.iso
Sending file modes: C0644 660602880 debian-8.8.0-amd64-CD-1.iso
Sink: C0644 660602880 debian-8.8.0-amd64-CD-1.iso
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
Transferred: sent 2480, received 2372 bytes, in 0.1 seconds
Bytes per second: sent 32882.6, received 31450.6
debug1: Exit status 1
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
Transferred: sent 2904, received 2964 bytes, in 3.3 seconds
Bytes per second: sent 893.5, received 912.0
debug1: Exit status 1
Can someone tell me why all of a sudden this command no longer works? I checked /var/log/syslog
and couldn't find anything..
rsync
and port forwarding: https://unix.stackexchange.com/questions/183504/how-to-rsync-files-between-two-remotes – Jakuje May 26 '17 at 14:44