search

Home  >  Q&A  >  body text

github - Where does the user information of the last text of the ssh key generated in git come from? How to set it up?

For example, there is a text XXX@local at the end of the pub file. Where does this text come from? How to set it up

PHPzPHPz2790 days ago860

reply all(4)I'll reply

  • 仅有的幸福

    仅有的幸福2017-05-02 09:52:12

    It is automatically filled in when generating the public key,ssh-keygen 默认会用用户名@主机名.

    This thing has nothing to do with cryptography, it’s just a comment used to distinguish public keys. You can modify it or delete it after it is generated.

    reply
    0
  • 漂亮男人

    漂亮男人2017-05-02 09:52:12

    ssh-keygen -t rsa -C "baijunyao@baijunyao.com"

    is generated through commands;

    reply
    0
  • 高洛峰

    高洛峰2017-05-02 09:52:12

    This is a comment on the key
    Default = username@hostnameusername@hostname
    设置 ssh-keygen -t rsa -b 2048 -C "comment here"Setting ssh-keygen -t rsa -b 2048 -C "comment here"

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-02 09:52:12

    -C parameters after

    reply
    0
  • Cancelreply