git错误--ssh: Could not resolve hostname ssh.github.com: Name or service not known--解决方式
错误如下:
git push origin
ssh: Could not resolve hostname ssh.github.com: Name or service not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
make: * [deploy] 错误 128
解决方式1:
step1. ping github.com
获取到github.com的ip为192.30.252.128
step2. 在/etc/hosts中添加一行如下:
192.30.252.128 github.com
解决方式2:
以root权限执行如下python代码
#!/usr/bin/python
#coding=utf8import sockethost = 'github.com'try:with open('/etc/hosts', 'a+') as fp: ip = socket.gethostbyname(host)fp.write(' '.join([ip, host, '\n']))
except BaseException as e:print(e)
else:print('sucess')
git错误--ssh: Could not resolve hostname ssh.github.com: Name or service not known--解决方式相关推荐
- git报错 ssh: Could not resolve hostname gitee.com:xxxxxx: Name or service not known fatal
问题 使用git进行push操作时突然出问题,报错如下: ssh: Could not resolve hostname git: xxxxx:Name or service not known fa ...
- ssh: Could not resolve hostname e.coding.net: Name or service not known
在向git上传代码,即git push 或从git上download代码 git pull 时,会有如下错误提示: ssh: Could not resolve hostname **: Name o ...
- Git提示:ssh: Could not resolve hostname github.com: No address associated with hostname
今天本地Git Push 代码推送远程分支,提示如下错误信息: zzg@LAPTOP-8R0KHL88 MINGW64 /e/idea_workspace (master) $ git push ss ...
- 错误提示:ssh: Could not resolve hostname devsrv: Name or service not known
ssh: Could not resolve hostname devsrv: Name or service not known ubuntu下 scp时出错:ssh: Could not reso ...
- scp命令传输出现ssh: Could not resolve hostname错误
ssh: Could not resolve hostname xxxxx: Temporary failure in name resolution 原因是docker导出的镜像需要离线导入,在命名 ...
- [git]ssh: Could not resolve hostname github.com: nodename nor servname provided, or not known
ssh: Could not resolve hostname github.com: nodename nor servname provided, or not known This sounds ...
- ssh: Could not resolve hostname gitcafe.com: nodename nor servname provided, or not known
今天 git push 的时候报如下错误: ssh: Could not resolve hostname gitcafe.com: nodename nor servname provided, o ...
- ssh:could not resolve hostname XXX:Temporary failure in name resolution
今天使用虚拟机提交github项目发现出现: ssh:could not resolve hostname XXX:Temporary failure in name resolution 先是pin ...
- 配置免密登录报错:ssh: Could not resolve hostname note1: Name or service not known
这两天配置免密出现这个错误: [root@note4 .ssh]# ssh note1 ssh: Could not resolve hostname note1: Name or service n ...
- ssh: Could not resolve hostname github.com
ssh: Could not resolve hostname github.com: Name or service not known fatal 可能原因 github上的key出了问题 个人网 ...
最新文章
- NetBeans常用快捷键
- python之syslog模块
- NUC_HomeWork1 -- POJ1088(DP)
- 监控ui_做了10年监控系统,有些经验想和你分享
- 『TensorFlow』专题汇总
- hadoop的关键进程
- Linux 内核宏 time_after解析
- 使用Firebase、Angular 8和ASP.NET Core 3.1保护网站安全
- 2019 序列号_苹果序列号知识扫盲:iPhone序列号含义与查询真伪全攻略
- HTML文档解析器 NekoHTML
- Ubuntu 搭建SVN服务器(SVN Server)
- Java 中的三大特性(超详细篇)
- 服务器更换固态后如何安装系统,更换固态硬盘后安装操作系统的两种常用方法...
- 如何在台式电脑上添加无线网络连接服务器,台式电脑怎么无线上网?台式电脑无线网络设置教程...
- IB课程体系的优缺点介绍
- 图解如何在IIS上部署Asp.Net(.NET5.0)网站,新手必看!!!
- 头条视频中视频玩法技巧
- Entrust Datacard完成对泰雷兹旗下市场领先的通用硬件安全公司nCipher Security的收购
- windows监听扬声器、麦克风静音、音量事件
- 面试管:用了HTTPS就安全了吗?HTTPS 会被抓包吗?
热门文章
- 物联网IP设备添加与入网
- STM32片上Flash读写的一些重要知识
- Java加密解密代码小记
- 扬声器有小红叉,前置耳机孔没有声音,找不到realtek高清晰音频管理器
- 首席架构师的领导力和管理能力
- 【071】张大妈计算器-工资计算器及各地薪资报告
- JFrame中添加背景音乐
- linux中文件夹删不掉,Linux无法删除文件夹 Device or resource busy
- win10打不开计算机配置似乎是正确的,Win10系统软件打不开提示“并行配置不正确”如何解决...
- Redis采用不同内存分配器碎片率对比