1. 程式人生 > >使用ssh-add命令添加ssh私鑰時報錯

使用ssh-add命令添加ssh私鑰時報錯

ssh-add question blank tar ould over add blog AD

當使用ssh-add命令添加ssh私鑰時,報如下錯誤:

Could not open a connection to your authentication agent.
技術分享圖片

其實需要先執行如下命令:

eval $(ssh-agent)

再執行ssh-add即可

參考資料:https://stackoverflow.com/questions/17846529/could-not-open-a-connection-to-your-authentication-agent

使用ssh-add命令添加ssh私鑰時報錯