Back
I have to download a file from the server to my desktop (UBUNTU 10.04) on Mac OS X and iTerm 2 terminal. Can anyone tell me how to download a file from the server using ssh?
Try the command below:
scp [email protected]:foobar.txt /local/dir
You can replace the username, host, remote filename, and local directory as appropriate. To access EC2 (or any services which requires authentication with private key), use the -i option like below:
scp -i key_file.pem [email protected]:/remote/dir/foobar.txt /local/dir
Check this website: http://www.hypexr.org/linux_scp_help.php
Interested in Linux? Check out this Linux Certification by Intellipaat.
31k questions
32.8k answers
501 comments
693 users