2009-05-27 8 views

Respuesta

23

Desde la página de manual ‘ssh-keygen (1)’:

 
For RSA1 keys, there is also a comment field in the key file that is only for 
convenience to the user to help identify the key. The comment can tell what the 
key is for, or whatever is useful. The comment is initialized to “[email protected]” 
when the key is created, but can be changed using the -c option. 
… 
-C comment 
     Provides a new comment. 

-c  Requests changing the comment in the private and public key files. This 
     operation is only supported for RSA1 keys. The program will prompt for 
     the file containing the private keys, for the passphrase if the key has 
     one, and for the new comment. 

Por lo tanto, al crear la clave que utiliza -C "$desiredcommenttext" para proporcionar cualquier texto del comentario que desee; o para una clave existente, use la opción -c para cambiar el comentario.

6

Sí! No es necesario en absoluto, se adjunta de forma arbitraria para que le resulte fácil recordar de dónde vino. Si desea modificarlo, basta con abrir una sesión de Terminal y escriba:

$ nano ~/.ssh/id_rsa.pub 

quitar la parte final de la línea (después de los dobles iguales).

+1

En lugar de piratear directamente el archivo de datos (que es frágil porque podría cambiar), es mejor utilizar la interfaz de usuario de la herramienta oficial para este fin. – bignose

+0

@bignose Eso supondría saber el comando correcto, ¿no es así? – Nuzzolilo

Cuestiones relacionadas