Configurando SSH keys

Posted on April 26, 2006. Filed under: Linux |

Para dejar de lado la autenticacion por contraseña se usan keys DSA. Seguir los siguientes pasos:

Crear el par publico/privado de llaves (keys), las misma son puestas en "~/.ssh"

usuario1@sshclient:~$ ssh-keygen -t dsa

Copiar llave publica al otro host:
usuario1@sshclient:~$ cat ~/.ssh/id_dsa.pub | ssh usuario2@sshserver "cat >> .ssh/authorized_keys"

Cambiar permisos:

usuario1@sshclient:~$ ssh usuario2@sshserver chmod 600 .ssh/authorized_keys

Advertisements

Make a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Liked it here?
Why not try sites on the blogroll...

%d bloggers like this: