Saturday, October 4, 2014

scp examples


Copy the file "foo.txt" from a remote host to the local host

$ scp username@remotehost:foo.txt /some/local/directory

copy the file "foo" from local to remote

$ scp foo username@remotehost:/some/remote/directory

No comments: