美文网首页
git错误--ssh: Could not resolve ho

git错误--ssh: Could not resolve ho

作者: YYL07 | 来源:发表于2018-07-29 10:41 被阅读0次

git错误--ssh: Could not resolve hostname ssh.github.com: Name or service not known

解决方法:

  1. ping [远程仓库的host name]
ping git.coding.net

得到:123.59.83.81
  1. 写入 hosts
sudo vim /etc/hosts

在文件最后加上:
123.59.83.81  git.coding.net

在进行git操作,成功。

参考文章:
git错误--ssh: Could not resolve hostname ssh.github.com: Name or service not known--解决方式

相关文章

网友评论

      本文标题:git错误--ssh: Could not resolve ho

      本文链接:https://www.haomeiwen.com/subject/rxjzmftx.html