Skip to content

Instantly share code, notes, and snippets.

@pamolloy
Last active December 17, 2015 21:29
Show Gist options
  • Save pamolloy/5674583 to your computer and use it in GitHub Desktop.
Save pamolloy/5674583 to your computer and use it in GitHub Desktop.
Copy files to a remote host
echo -e "Host $host\nPort $port" >> ~/.ssh/config
rsync --archive --recursive --compress --times --update -e ssh $path $host:$path
@pamolloy
Copy link
Author

Resources include the following.

man ssh
man ssh_config

Look into the ssh remote example and rsync daemon.

man rsync

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment