I have a large file to down form a ssh server, however the connection keeps cutting out. I know that rsync can be used to resume the download however I can not find how to do this when I am using a .pem file.

So my current download command is:

scp -i repo.pem [email protected]:/home/user/file.img .

how would I intergrate this with rsync?

1 Answer 1


Some articles touching on this issue:

Basically, supply a custom ssh command to rsync using -e, i.e. something along these lines:

rsync -ave "ssh -i my.pem" user@server:/path/to/file .

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .