ssh-keygen的-C後面的郵箱有什麼用?

原文鏈接:https://blog.csdn.net/u011118321/article/details/78516303

每次生成密鑰,看到國內的博客,都要求輸入郵箱。但不知道意義何在。

後來在stackOverFlow上看到這個答案。

The email is only optional field to identify the key.
郵箱僅僅是識別用的key

When you create the ssh you type (for example):
ssh-keygen -t rsa -C “any comment can be here”
當你創建ssh的時候

-t = The type of the key to generate
密鑰的類型
-C = comment to identify the key
用於識別這個密鑰的註釋
So the Comment is for you only and you can put anything inside.
Many sites and software are using this comment as the key name.
所以這個註釋你可以輸入任何內容,很多網站和軟件用這個註釋作爲密鑰的名字
 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章