I have an existing SSH key (public and private), that was created with ssh-keygen. How can I add a comment to this existing key?
I have an existing SSH key (public and private), that was created with ssh-keygen. How can I add a comment to this existing key?
Just add a space after the key and put in the comment, e.g.:
The man page for sshd has a section on the authorized_keys format, where it states that the comment extends to the end of the line. While I haven't tried it, you should be able to put spaces into the comment.
Just start the line with a
#
sign, then the whole line will be treated as a commentSee the man page of authorized_keys