今天在操作github的时候,自己已经做好了免密
在使用的过程中不知道做了什么,提示输入密码
于是测试了下证书没有问题
ssh -T git@github.com
git@github.com's password:
Permission denied, please try again.
git@github.com's password:
输入密码无效;
解决办法:
```
vim ~/.ssh/config
#添加
Host github.com
identityFile ~/.ssh/id_rsa #自己的私钥文件名
Host github.com
Hostname ssh.github.com
Port 443
User git
```
再次测试:
ssh -T git@github.com
Warning: Permanently added the RSA host key for IP address '[18.141.90.153]:443' to the list of known hosts.
Hi xxxxx! You've successfully authenticated, but GitHub does not provide shell access.