现象

git clone 代码总是报 输入密码,但输入正确密码仍然报告“permition denied”

解决方法

生成公钥

1033 2021-04-22 11:42:30 cd /root/.ssh
1034 2021-04-22 11:42:34 ls -lart
1035 2021-04-22 11:43:19 ssh-ky
1036 2021-04-22 11:44:31 git config –global user.name “xiaqichao”
1037 2021-04-22 11:44:43 git config –global user.mail “xiaqichao@soft.com”
1038 2021-04-22 11:45:42 man ssh-keygen
1039 2021-04-22 11:46:48 ssh-keygen -t rsa -C “xiaqichao@soft.com”
1040 2021-04-22 11:46:57 ls -alrt

添加公钥到git 服务器

在git 网页上添加自己的 公钥:
在网页上:http://newgit.op.yun.com/profile/keys/7611 上把上面的公钥复制添加进去:

总结