).png)
我使用 SSH 連接到伺服器:
ssh -i ~/.ssh/example_rsa root@xxxxxxxxx
我得到以下回應:
Identity added: .ssh/example_rsa ((null))
我想了解一下:
- 加到什麼?
((null))
最後的是什麼意思?
答案1
跑步
ssh -i ~/.ssh/example_rsa root@xxxxxxxxx
從不列印
Identity added: .ssh/example_rsa ((null))
如果您執行了以下命令,則會列印出來:
ssh-add ~/.ssh/example_rsa
空值意味著評論來自身分文件(來源)。您的私鑰可以儲存註釋,以便更輕鬆地區分各種金鑰:
fprintf(stderr, "Identity added: %s (%s)\n", filename, comment);