Configurando SSH keys

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

Author: ciroiriarte

I'm an IT professional interested in infrastructure technologies, working as an Architect for a Service Provider present in 9 markets. Works includes technologies related to Distributed App environments, Operating Systems, OS Virtualization, SDN & VNF.

Leave a Reply

Your email address will not be published. Required fields are marked *