Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 13 years ago.
只需提供 -C 标志即可,文件末尾的内容只是注释,除了区分之外不用于任何其他用途。
-C
ssh-keygen -C“somecomment@somehostname”
Just provide the -C flag, the stuff at the end of the file is only a comment, not used for anything else except differentiation.
ssh-keygen -C "somecomment@somehostname"
密钥文件 (id_rsa.pub) 末尾的主机名只是注释。您可以使用任何编辑器进行更改。
或者如果您确实想从命令行执行此操作:
awk '{$3 = "[email protected]"; print;}' id_rsa.pub > new_id_rsa.pub
The hostname at the end of the key file (id_rsa.pub) is just a comment. You can change is with any editor.
or if you really want to do it from the command line:
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(2)
只需提供
-C
标志即可,文件末尾的内容只是注释,除了区分之外不用于任何其他用途。ssh-keygen -C“somecomment@somehostname”
Just provide the
-C
flag, the stuff at the end of the file is only a comment, not used for anything else except differentiation.ssh-keygen -C "somecomment@somehostname"
密钥文件 (id_rsa.pub) 末尾的主机名只是注释。您可以使用任何编辑器进行更改。
或者如果您确实想从命令行执行此操作:
The hostname at the end of the key file (id_rsa.pub) is just a comment. You can change is with any editor.
or if you really want to do it from the command line: