1

Facing a problem while using scp to download a file from AWS EC2 instance(to which I have assigned a elastic IP),scp is ignoring the my-store folder. But when i access the ec2 instance over ssh, I can see, access the my-store folder.

This is the code I type on my local terminal.

scp -i Downloads/spree-store.pem [email protected]:/home/ubuntu/my-store /. scp: /home/ubuntu/my-store: No such file or directory

EDIT :
Main purpose of this question was to edit text files remotely over ssh, vim is by far the best option this article explains how to install vim and get it running https://help.ubuntu.com/community/VimHowto

P.S:use :e . to get vim to list all the files in the directory.

1 Answer 1

0

For transferring directories with scp you must always use -r.

Normally though, the expected error message would tell you that my-store is not a regular file (which it clearly isn't) rather than stating that there's no such file or directory.

Also unless you really want "/" (your system root) as destination, remove the the slash before the dot.

You must log in to answer this question.

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