Acceso ssh mediante certificados

Creacion del certificado

generamos la clave publica y privada

snaker@cornelius:~$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/snaker/.ssh/id_rsa):
/home/snaker/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/snaker/.ssh/id_rsa.
Your public key has been saved in /home/snaker/.ssh/
The key fingerprint is:

y copiamos la parte pública en los servidores

snaker@cornelius:~$ scp ~/.ssh/ snaker@fastfoot:~/.ssh/authorized_keys
The authenticity of host 'fastfoot (' can't be established.
RSA key fingerprint is 68:c3:29:9c:8a:62:46:2a:3f:9b:f6:0e:24:47:e2:27.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'fastfoot' (RSA) to the list of known hosts.
snaker@fastfoot's password:                                                                 
howto/seguridad/certificados_ssh.txt · Última modificación: 13/11/2007 02:56 por snaker