I want to transfer files between 2 different servers via a shell script (password less)
I set up the SSH keys following this tutorial : http://www.cyberciti.biz/tips/ssh-public-key-based-authentication-how-to.html
Then i try to the transfer of a file: test.txt from server1 to server2 using this command:
rsync -avz /home/tasklitetest/test.txt jansia@ps27670.dreamhost.com:/home/tasklite/
The command seems to execute without trouble because i got the following :
[2] 4920
[1] Done rsync -avz /home/tasklitetest/test.txt jansia@ps27670.dreamhost.com
[ps115171]$ sending incremental file list
sent 62 bytes received 12 bytes 148.00 bytes/sec
total size is 396 speedup is 5.35
But i got not file on my other server in /home/tasklite/