Change ssh-key comment

2018-10-02

ssh-keygen -f ~/.ssh/id_rsa -o -c -C "here goes your comment"

Command options explained:

-f: private key file

-o: convert the private key from PEM to the new OpenSSH format

-c: change the comment in the private and public key files

-C: comment text