打開終端機輸入
ssh-agent bash
再輸入 ssh 檔案的位置
ssh-add /path/ssh-key.pem
會出現要輸入金錀的密碼
Enter passphrase for ssh-key.pem:
然後就會 ssh-key 載入的訊息
Identity added: ssh-key.pem
這樣就可以還原了
參考連結:
https://askubuntu.com/questions/362280/enter-ssh-passphrase-once
打開終端機輸入
ssh-agent bash
再輸入 ssh 檔案的位置
ssh-add /path/ssh-key.pem
會出現要輸入金錀的密碼
Enter passphrase for ssh-key.pem:
然後就會 ssh-key 載入的訊息
Identity added: ssh-key.pem
這樣就可以還原了
參考連結:
https://askubuntu.com/questions/362280/enter-ssh-passphrase-once