gitlab服务器迁移后再git pull 出错

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wangxinxinsj/article/details/82879473

公司运维不知道做了什么操作,据说在迁移,迁移后就这样了

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
SHA256:/vss/vAvMe/rQVXO6SVbVRdqoZfvW0b7wYcFkKZInkY.
Please contact your system administrator.
Add correct host key in /Users/wxx/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/wxx/.ssh/known_hosts:41
RSA host key for [192.168.2.116]:31222 has changed and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.

这样是因为我本地已经在~/.ssh/known_hosts文件中记住了,在文件删除对应地址的信息,再次访问时,会提示

Are you sure you want to continue connecting (yes/no)?

这里填入yes,这个只有通过ssh连接的才会有,如果利用username与password连接的则不会有些问题

猜你喜欢

转载自blog.csdn.net/wangxinxinsj/article/details/82879473