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.
protected by Michael Hampton♦ Jul 22 at 21:35
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?