EnderUNIX Team.


EnderUNIX tips

Mail to My Friend , Home Page

[ Linux ]

"passwordless ssh" - Mehmet Uluer - (2006-07-24 15:40:49)   [5847]

on the first and second server:

muluer ~# mkdir ~/.ssh
muluer ~# chmod 755 ~/.ssh
muluer ~# /usr/bin/ssh-keygen -t rsa
muluer ~# /usr/bin/ssh-keygen -t dsa
muluer ~# cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
muluer ~# cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

on the first server:

muluer ~# ssh muluer@server2 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
muluer ~# ssh muluer@server2 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
muluer ~# chmod 644 ~/.ssh/authorized_keys

on the second server:

muluer ~# ssh muluer@server1 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
muluer ~# ssh muluer@server1 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
muluer ~# chmod 644 ~/.ssh/authorized_keys

verification:

on the first server:
muluer ~# ssh muluer@server2 ls -al

on the second server:
muluer ~# ssh muluer@server1 ls -al

Mail to My Friend , Home Page