UNIX: Secure Copy folders between UNIX Machines

/ Published in: Bash
Save to your folder(s)

You will be prompted for a password after issuing this command

Copy this code and paste it in your HTML
  1. # to copy directory from remote to local machine
  2. scp -r user@machine-name.com:/path/to/remote/directory/to/copy/* /path/to/local/destination/directory
  4. # to copy directory from local to remote machine
  5. scp -r /path/to/local/directory/to/copy/* user@machine-name.com:/path/to/remote/destination

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.