SSH without password -------------------- =========================================================================================================================== [user1@computer1]$ ssh-keygen -t rsa [user1@computer1]$ ssh -l user2 computer2 mkdir -p .ssh user2@computer2's password: ... [user1@computer1]$ cat .ssh/id_rsa.pub | ssh -l user2 computer2 'cat >> .ssh/authorized_keys' user2@computer2's password: [user1@computer1]$ ssh -l user2 computer2 <--- OK without Password [user2@computer2]$ =========================================================================================================================== rsync =========================================================================================================================== #rsync -e ssh -av /local/testrsync/ yourusername@yourserver.com:/remote/testrsync ‘-e ssh’ - tells it to use ssh to connect to your server. ‘-av’ - tells it to be verbose and use something called ‘archive mode’ (which basically says you want to copy everything in this dir and to preserve file time stamps). =========================================================================================================================== Deploy =========================================================================================================================== [ Test ] #rsync -e ssh -av /disk2/web/httpd/htdocs/testrsync/ root@192.168.1.243:/..../htdocs/testrsync/ [ Contingencia: 192.168.1.21 ] #rsync -e ssh -av root@192.168.1.243:/web/httpd/htdocs/ /disk2/web/httpd/htdocs/