ssh agent and ssh add for git Permission denied

出现 *@github.com: Permission denied (publickey).

原因是 ssh 找不到密钥文件

可以用

ssh-add ~/.ssh/file.rsa

若出现 Could not open a connection to your authentication agent.

输入以下命令

ssh-agent bash

 最后测试一下

猜你喜欢

转载自www.cnblogs.com/bushuosx/p/10965518.html
今日推荐