Saturday, October 9, 2010

Enable SSH in Linux env

Linux password-less login
configuring password less between two linux system

workstation#1
ssh-keygen -t rsa
Enter your password
scp ~/.ssh/id_rsa.pub user@remote.server.com:.ssh/authorized_keys
scp user@remote.server.com:.ssh/authorized_keys ~/.ssh

workstation#2
ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
scp ~/.ssh/authorized_keys user@remote.server.com:.ssh/

No comments:

Post a Comment