微慑信息网

[git]ssh: connect to host github.com port 22: Connection refused

使用Git_gui,报错:


ssh: connect to host github.com port 22: Connection refused
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

前提:已在github上添加ssh-key,且host已添加github.com

 

 

 

 

最后解决:

配置.git下config文件,将配置的url:

url = [email protected]:user/111.git

 

修改为:

https://github.com/username/repo.git

 

 

参考:https://segmentfault.com/a/1190000041909858

本文标题:[git]ssh: connect to host github.com port 22: Connection refused
本文链接:
(转载请附上本文链接)
https://vulsee.com/archives/vulsee_2022/0728_16588.html
转载请附本站链接,未经允许不得转载,,谢谢:微慑信息网-VulSee.com » [git]ssh: connect to host github.com port 22: Connection refused
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

微慑信息网 专注工匠精神

访问我们联系我们