Loading

Thursday, July 23, 2009

Linux: SSH Without Password

Process to enable password-free secure connection
SERVER=ALPHA
CLIENT=BRAVO

SERVER KEY GEN
------------------------
ssh-keygen -t rsa

CLIENT KEY GEN
------------------------
ssh-keygen -t rsa
ssh-keygen -t dsa

CLIENT KEY CONCAT
------------------------
cat id_dsa.pub >newKeys
cat id_rsa.pub >>newKeys

CLIENT KEY copy to SERVER
------------------------
scp newKeys root@alpha:/root/.ssh/newKeys


SERVER KEY AUTHORIZATION
------------------------
cd /root/.ssh/
cat newKeys >>authorized_keys
echo 'Key id_dsa_ssh.pub' >>authorization

No comments:

Post a Comment