Resuming a stalled scp operation

I’ve been digging around in the linux cli again lately, trying (with mixed success) to manage several boxes with ssh connections. Today I was moving a file from a server to my workstation via scp, and the connection slowed to a crawl, then crapped out completely. The ETA status changed to “stalled” even though there was still a little bit of activity on the link. After searching around, I found this article at the LinuxWave blog that explains how to use rsync to finish the transfer.

And whaddya know? It works! Though it didn’t literally *resume* the ssh transfer, it grabbed the two pieces (local and remote) of the file in question, joined them, and put the new file in the right spot. FTW!

Leave a Reply

Your email address will not be published. Required fields are marked *