github - Where does the user information of the last text of the ssh key generated in git come from? How to set it up?
PHPz
PHPz 2017-05-02 09:50:12
0
4
853

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

PHPz
PHPz

学习是最好的投资!

reply all(4)
仅有的幸福

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.

漂亮男人
ssh-keygen -t rsa -C "baijunyao@baijunyao.com"

is generated through commands;

小葫芦

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"

过去多啦不再A梦

-C parameters after

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template