Saturday, November 7, 2009

How to log into another server without asking you for a pasword - in 4 steps.

ALPHA = server 1, where to log in from
BETA = server 2, destination where we log in


ALPHA: ssh-keygen -t rsa
BETA: mkdir .ssh
ALPHA: cat .ssh/id_rsa.pub | ssh user@BETA 'cat >> .ssh/authorized_keys'
BETA: chmod 644 .ssh/authorized_keys


To establish a mirror relationship, exchange server ALPHA with BETA and run through the 4 steps again.

No comments:

Post a Comment