Amazon-Web-Services – How to download files from EC2 instances to your local computer

I have an instance of ec2.it with some files. I tried to download my files from the ec2 instance to my local Ubuntu 13.10.i and run this command

scp -i /home/ritesh/.ssh/id_rsa2 [email protected]:/home/apps/dev/comp-eng/arena-client/build/arena-client -7.1.0.zip

I got it in the output

Usage: scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
[-L limit] [-o ssh_option] [-P port] [-S program]
[[user @] host1:] file1… [[user @] host2:] file2

I am using the correct format. Why am I facing this error instead of downloading the file?

You need to specify the download location. If it is the current directory, you only need to add one..

scp -i /home/ritesh/.ssh/id_rsa2 [email protected]:/home/apps/dev/comp-eng/arena-client/build/arena-client-7.1 .0.zip.

I have an instance of ec2.it with some files.i tried to download my files from the ec2 instance to my local Ubuntu 13.10.i to run This command

scp -i /home/ritesh/.ssh/id_rsa2 [email protected]:/home/apps/dev/comp-eng/ arena-client/build/arena-client-7.1.0.zip

In the output I get

Usage: scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
[-l limit] [-o ssh_option] [-P port] [-S program]
[[user @] host1:] file1… [[user @] host2: ] file2

I am using the correct format. Why am I facing this error instead of downloading the file?

You need to specify the download location. If it is the current directory, you only need to add one..

scp -i / home/ritesh/.ssh/id_rsa2 [email protected]:/home/apps/dev/comp-eng/arena-client/build/arena-client-7.1.0.zip.

Leave a Comment

Your email address will not be published.