Download files from server

Posted 2016.07.21 19:01

In your terminal, type:

scp your_username@remotehost.edu:foobar.txt /local/dir

replacing the username, host, remote filename, and local directory as appropriate.

If you want to access EC2 (or other service that requires authenticating with a private key), use the -i option:

scp -i key_file.pem your_username@remotehost.edu:/remote/dir/foobar.txt /local/dir

From: http://www.hypexr.org/linux_scp_help.php



You can do this with the scp command. scp uses the SSH protocol to copy files across system by extending the syntax of cp.

Copy something from this system to some other system:

scp /path/to/local/file username@hostname:/path/to/remote/file          

Copy something from some system to some other system:

scp username1@hostname1:/path/to/file username2@hostname2:/path/to/other/file   

Copy something from another system to this system:

scp username@hostname:/path/to/remote/file /path/to/local/file

신고

'Enginius > Python&TensorFlow' 카테고리의 다른 글

Docker 사용하기  (0) 2016.11.22
Virtual environment 사용하기  (0) 2016.11.17
Download files from server  (0) 2016.07.21
letsencrypt renew  (0) 2016.07.17
move folders excluding one  (0) 2016.06.14
Tried to connect to port 6006, but address is in use  (0) 2016.04.27
« PREV : 1 : ··· : 34 : 35 : 36 : 37 : 38 : 39 : 40 : 41 : 42 : ··· : 586 : NEXT »