SSH: Difference between revisions

No edit summary
adds example with rsync
Line 87: Line 87:
If you do these in [[screen]] sessions, they should survive any network connectivity issues and you can log out completely.  See above config section to set this up by default for certain situations.
If you do these in [[screen]] sessions, they should survive any network connectivity issues and you can log out completely.  See above config section to set this up by default for certain situations.


== With rsync ==
If you need to pass SSH options to rsync, then use the <code>--rsh= (-e)</code> option.
<source lang="bash">
rsync -n -e "ssh -i /home/greg/.ssh/ec2-west-wiki.pem" -vatz --stats \
/var/www/phase3-extensions/ \
ubuntu@amazon:/home/ubuntu/wiki-extensions/
</source>
[[Category:System Adminstration]]
[[Category:System Adminstration]]