Setting up Password-less logins via SSH

Saturday, June 12, 2010 Posted by Psyk
This allows you to SSH into many machines (great for managing a number of VM's) without having to continually enter login and password.

On your main server (e.g. your management server), configure the SSH keys:  
# mkdir -p $HOME/.ssh
# chmod 0700 $HOME/.ssh
# ssh-keygen -t dsa -f $HOME/.ssh/id_dsa -P ''


This command creates two files: $HOME/.ssh/id_dsa (private key) and $HOME/.ssh/
id_dsa.pub (public key).
# ssh-copy-id -i $HOME/.ssh/id_dsa.pub (your.other.linux.servers)



From your 'management server' test the results by ssh'ing into each of the servers:
# ssh (your.other.linux.servers)
Labels:

Post a Comment