scp Usage

Secure File Copy (scp) allows you to copy files between hosts using the SSH protocol.

To copy from a remote host to your current host

PERL:
  1. scp -r user@remotehost:path/to/remotefiles localtarget
  2.  
  3. #-r recursive copy
  4. #you will be prompted for user's password @ remotehost

To copy files from your current host across to the remote host

PERL:
  1. scp -r localfiles user@remotehost:path/to/remotetarget

Leave a Reply

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

*


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>