7

Say I have a public RSA SSH key that looks like:

ssh-rsa ijvoienvejfvmiejnci3onrvejviewlonvcljnrijcnreionv me@machine

If I’m copying this key to share with another machine, do I include the comment at the end (me@machine)? Do I include the header (ssh-rsa)?

1 Answer 1

9

Header yes, comment - up to you;

The header tells of the encryption used, and while it maybe possible to figure it out, it's easier this way ;)

As for the comment at the end, you can keep it, get rid of it or change it as you want.

2
  • 2
    The comment is handy when looking at an authorized_keys file to pick up at a glance which keys are authorized. Dec 21, 2016 at 20:35
  • It is not encryption. It is "just" the key type, but it does not mean it is less important.
    – Jakuje
    Dec 21, 2016 at 21:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .