出现 *@github.com: Permission denied (publickey).
原因是 ssh 找不到密钥文件
可以用
ssh-add ~/.ssh/file.rsa
若出现 Could not open a connection to your authentication agent.
输入以下命令
ssh-agent bash
最后测试一下
ssh -T [email protected]
出现 *@github.com: Permission denied (publickey).
原因是 ssh 找不到密钥文件
可以用
ssh-add ~/.ssh/file.rsa
若出现 Could not open a connection to your authentication agent.
输入以下命令
ssh-agent bash
最后测试一下
ssh -T [email protected]