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?
Ssh – Add comment to existing SSH public key
public-keyssh
Related Topic
- SSH Authentication – How to Make SSH Fail Rather Than Prompt for Password
- Git for Windows – How to Tell Git Where to Find Private RSA Key
- SSH – Bad Owner or Permissions on ~/.ssh/config
- SSH Keys – Add Correct Host Key in Known Hosts for Multiple SSH Host Keys
- SSH Public Key Format
- Ssh – Fingerprint of PEM ssh key
- How to get a .pem file from ssh key pair
- Ssh – What significance does the user/host at the end of an SSH public key file hold
Best Answer
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.