代码拉取完成,页面将自动刷新
使用~/.ssh/config
[root@k8s-master ~]# cat ~/.ssh/config
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
Host github.com
HostName github.com
Port 22
User git
IdentityFile ~/.ssh/sshkey/seanly/prikey
Host git.oschina.com
HostName git.oschina.com
Port 22
User git
IdentityFile ~/.ssh/sshkey/seanly/prikey
访问git.oschina.com操作库,出现下面的问题
同样的配置,我确认可以访问后,过几天重新取库就出现这样的报错。
[root@k8s-master ~]# git clone git@git.oschina.net:seanly/ccsbuild.git
Cloning into 'ccsbuild'...
Warning: Permanently added 'git.oschina.net,116.211.167.14' (ECDSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
一般这种情况都是客户机出的幺蛾子
我仔细看了下,你的配置里面没有配置git.oschina.net的key,我不知道你之前是怎么可以的,但是应该是一直不可以的,因为你的config里面配置的是git.oschina.com
你改下再试试?
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
嗯,对了,我改成gitee.com,这个域名好用些。
登录 后才可以发表评论