SSH Copy
January 19, 2009 Posted by KP
Copy a local file to remote host with ssh port 123
# scp -P 123 /backup/localefile username@remotehost.com:/backup/
Copy file from remote host
# scp -P 123 username@remotehost.com:/backup/remotefile /backup/
Related Posts:
Filed Under: Command & Utility
February 14th, 2009 at 9:20 am
I never use cp or scp without -p. I do not like copying without preserving timestamps.