scp: secure copy

scp — secure copy (remote file copy program)

Copy remote files to local machine:
This example using admin as the admin user to login to host. This will prompt for password to remote host and copt to desktop

scp ~/Desktop/test2moved.txt

Copy the file “foobar.txt” from a remote host to the local host
scp /some/local/directory

Copy the file “foobar.txt” from the local host to a remote host
scp foobar.txt

Copy the directory “foo” from the local host to a remote host’s directory “bar”
scp -r foo

Copy the file “foobar.txt” from remote host “” to remote host “”
scp \

Copying the files “foo.txt” and “bar.txt” from the local host to your home directory on the remote host
scp foo.txt bar.txt

Copy multiple files from the remote host to your current directory on the local host
scp\{a,b,c\} .
scp\{foo.txt,bar.txt\} .


Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
Share via
Copy link