本地的代码通过IDEA工具push代码到慕课网的仓库时,出现Could not read from remote repository.请问如何解决?
来源:2-4 代码关联Git远程仓库

ArthurHouKing
2021-11-29
本地的代码通过IDEA工具push代码到慕课网的仓库时,出现Could not read from remote repository.请问如何解决?
D:\StarRiverWiki>git status
On branch master
Your branch is ahead of ‘origin/master’ by 1 commit.
(use “git push” to publish your local commits)
nothing to commit, working tree clean
D:\StarRiverWiki>git remote -v
origin ssh://git@git.imooc.com:80/arthurhou/StarRiverWiki.git (fetch)
origin ssh://git@git.imooc.com:80/arthurhou/StarRiverWiki.git (push)
D:\StarRiverWiki>git remote
origin
D:\StarRiverWiki>git status
On branch master
Your branch is ahead of ‘origin/master’ by 1 commit.
(use “git push” to publish your local commits)
nothing to commit, working tree clean
D:\StarRiverWiki>git push origin master
Unable to negotiate with 117.121.101.93 port 80: no matching host key type found. Their offer: ssh-rsa
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
2回答
-
weixin_慕莱坞1431086
2022-07-06
环境:Win10
方法:在.ssh文件新建一个 config 文件,无扩展名,添加以下内容
Host *
PubkeyAcceptedKeyTypes +ssh-rsa
HostKeyAlgorithms +ssh-rsa保存后即可
10 -
甲蛙
2021-11-30
看最后几行是没权限,像课程一样,在慕课网配置下key
022021-12-01
相似问题