git迁移远程仓库后报错的解决办法
来源:互联网 发布:js调用servlet方法 编辑:程序博客网 时间:2024/06/06 07:04
1.问题描述:
今天服务器迁移了下git,于是就直接根据拷贝后的git repo创建了远程仓库,本来一切都很顺利。
服务器端执行命令报错。记录下解决过程
2.执行命令报错
$ git fetch origin master
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
50:a9:7a:a2:e6:cc:ae:ea:99:d0:f1:6e:ee:fa:e6:1e.
Please contact your system administrator.
Add correct host key in /c/Users/Administrator/.ssh/known_hosts to get rid of th
is message.
Offending key in /c/Users/Administrator/.ssh/known_hosts:13
RSA host key for 192.168.20.85 has changed and you have requested strict checkin
g.
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
3.解决方法:
vim /c/Users/Administrator/.ssh/known_hosts
4.重新执行fetch命令
$ git fetch origin master
The authenticity of host
'192.168.20.85 (192.168.20.85)'
can't be established.
RSA key fingerprint is 50:a9:7a:a2:e6:cc:ae:ea:99:d0:f1:6e:ee:fa:e6:1e.
Are you sure you want to
continue
connecting (yes/no)? yes
Warning: Permanently added
'192.168.20.85'
(RSA) to the list of known hosts.
git@192.168.20.85's password:
remote: Counting objects: 9, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 7 (delta 2), reused 0 (delta 0)
Unpacking objects: 100% (7/7), done.
From 192.168.20.85:/home/repo/project/
* branch master -> FETCH_HEAD
- git迁移远程仓库后报错的解决办法
- git 远程仓库的迁移
- Git的远程仓库
- 本地git仓库提交远程失败的解决办法
- git仓库迁移和更新远程仓库地址
- git在本地创建的仓库无法提交到远程仓库解决办法
- git远程仓库的使用
- git--本地化的远程仓库
- git远程仓库的使用
- Git - 远程仓库的使用
- git远程仓库的使用
- GIT远程仓库的使用
- Git的远程仓库--GitHub
- git远程仓库的使用
- git-远程仓库的使用
- Git--远程仓库的使用
- Git --- 远程仓库的使用
- git 远程仓库的搭建
- Java for循环
- Go语言学习笔记 --- struct
- GPU/DRM介绍
- Mysql 查看连接数,状态
- 使用U盘作为启动盘重装系统
- git迁移远程仓库后报错的解决办法
- codevs 开关灯
- 批处理文件——多个QQ一键登录
- 算法题/递归
- Java设计模式之观察者模式
- 如何检索自然语言处理领域相关论文
- 各种程序配置与安装方法
- 添加服务,属性列表不显示添加的服务?
- PE文件格式详解(4)