使用公鑰作為密碼
- 2019 年 11 月 20 日
- 筆記
碰到過的關於公鑰的問題
設置了pass phrase後嫌麻煩,又該怎樣去除呢?
首先進入私鑰所在目錄
cd ~/.ssh/
然後使用ssh-keygen命令
ssh-keygen -f id-rsa -p
按提示操作即可 terminal的輸出是這樣的
12345 | $ ssh-keygen -f id_rsa -pEnter old passphrase:Enter new passphrase (empty for no passphrase):Enter same passphrase again:Your identification has been saved with the new passphrase. |
|---|