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/id_rsa.pub.
The key fingerprint is:

y copiamos la parte pública en los servidores

snaker@cornelius:~$ scp ~/.ssh/id_rsa.pub snaker@fastfoot:~/.ssh/authorized_keys
The authenticity of host 'fastfoot (192.168.23.23)' 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:
id_rsa.pub                                                                 
 
Subir
howto/seguridad/certificados_ssh.txt · Última modificación: 13/11/2007 02:56 por snaker