Keith Watanabe * NET 2.0

Easy Rsync Over SSH
By: Keith Watanabe
Published On: 5-11-2004

I've always had problems remembering the commands to do an rsync over ssh. Here's the quickie: rsync -a -e "ssh -i $SSHKEY" $FILE $DEST $SSHKEY: the pay to your private sshkey $FILE: the files you want to send $DEST: your destination. example: rsync -a -e "/usr/bin/ssh -i $HOME/.ssh/id_dsa" /home/mydir/datafile.txt me@remoteserver:. This will copy the file datafile.txt to your remote server. Make sure you have the sshkey generated (will put up another FAQ for that).

Tags: UNIX Linux
AddThis Social Bookmark Button Sphere: Related Content

Trackbacks: (Trackback URL)

No Comments Posted Yet
October [November] December
Sun Mon Tue Wed Thu Fri Sat
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 1 2 3 4 5 6