Home > Command & Utility > SSH Copy

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

One Comment to “SSH Copy”

  1. knarf Says:

    I never use cp or scp without -p. I do not like copying without preserving timestamps.

Leave a Comment

(required)
(will not be published, required)

* Copy this password:

* Type or paste password here:






Archives

Links