Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

scp ssh key

# download: remote -> local
scp user@remote_host:remote_file local_file 

# upload: local -> remote
scp local_file user@remote_host:remote_file

# upload: with key
scp -i key.pem local_file user@remote_host:remote_file

# upload: specify port
scp -P 2222 local_file user@remote_host:remote_file
Source by www.techrepublic.com #
 
PREVIOUS NEXT
Tagged: #scp #ssh #key
ADD COMMENT
Topic
Name
9+4 =