(03-12-2010 02:21 AM)kurgans Wrote: Generate key production server (www1)
www1: ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): /root/.ssh/sincroniza (Example path)
Enter passphrase (empty for no passphrase):[ENTER]
Enter same passphrase again:[ENTER]
Your identification has been saved in sincroniza
Your public key has been saved in sincroniza.pub
Copy generated files to new server
www1:scp /root/.ssh/sincroniza* root@ip:/root/.ssh
Record key automatic entry www1 to www2
www2:/root/.ssh/cat sincroniza.pub > /root/.ssh/authorized_keys
Finely in the script to enter data:
User
www2 server ip
path keys copied previously
generated correctly, but does not access the same with the script, but if you do manual login