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, or not known

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

  最开始还以为是权限被修改了,后来问了朋友下,他建议使用 https 协议试试,看是否成功,如何在使用 ssh 协议的同时又使用 https 协议呢?我们只需要新增一个 remote 即可,步骤如下:

1、添加远程仓库

git remote add remoteName url

  remoteName 仓库名称,可以自定义,不可和已有的仓库名称同名。这个名称,push和pull的时候是需要用到的。默认的是 origin

2、获取或推送

// pull
git pull remoteName branchName

// push
git push remoteName branchName

  结果发现push成功了,因此可以排除权限问题了。

那么出现这个原因的问题是什么?可能是服务器不稳定导致 ssh协议被gateway认证失败了,或者一些其他未知的原因。

时间: 2024-08-07 08:40:05

ssh: Could not resolve hostname gitcafe.com: nodename nor servname provided, or not known的相关文章

ssh: Could not resolve hostname问题终于解决了?

1.如果系统为64位,无法启动启动hdfs: ./sbin/start-dfs.sh.并有以下错误: sed: -e expression #1, char 6: unknown option to `s' HotSpot(TM): ssh: Could not resolve hostname HotSpot(TM): Name or service not known 64-Bit: ssh: Could not resolve hostname 64-Bit: Name or servic

ssh: Could not resolve hostname git.*****-inc.com : Temporary failure in name resolution fatal: The remote end hung up unexpectedly

问题出现的情景:使用git pull拉取开发的代码到测试服务器,报错: ssh: Could not resolve hostname git.****-inc.com : Temporary failure in name resolution fatal: The remote end hung up unexpectedly 解决: 1.确定本地的ssh相关的文件是正确的(参考[本地服务器配置Git]) 2.尝试了网上的方法,不是没root权限无法执行就是没解决问题,后来找运维解决了 原因

git提示错误关于错误:ssh: Could not resolve hostname github.com: Name or service not known.fatal: Could not read from remote repository.

关于 Git 使用中出现的错误 饥人谷_楠柒 关注 2016.11.02 15:33* 字数 746 阅读 3607评论 5喜欢 10赞赏 1 关于错误:ssh: Could not resolve hostname github.com: Name or service not known.fatal: Could not read from remote repository. QQ截图20161102144048.jpg 在我配置完公钥后想要进行远端Github上clone时出现了错误.经

hadoop启动报错:localhost: ssh: Could not resolve hostname localhost

hadoop启动journalnode时报错:localhost: ssh: Could not resolve hostname localhost: Temporary failure in name resolution 解决办法:将高亮部分补充到/etc/profile中,然后source生效 export JAVA_HOME=/opt/module/jdk1.8.0_144 export HADOOP_HOME=/opt/ha/hadoop-2.7.4 export HADOOP_CO

ssh修改默认端口号后无法连接(提示ssh: Could not resolve hostname)

ssh命令语法:usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface][-b bind_address] [-c cipher_spec] [-D [bind_address:]port][-E log_file] [-e escape_char] [-F configfile] [-I pkcs11][-i identity_file] [-J [[email protected]]host[:port]] [-L address][

启动hadoop时候报错:localhost: ssh: Could not resolve hostname localhost: Temporary failure in name resolution”

这个错误是由于配置文件没有配置好.解决方案如下: 1 打开profile文件 vim /etc/profile 2 在文件最后加入的内容应该如下(高亮的两句一般是大家缺少的): export JAVA_HOME=/usr/java/jdk export HADOOP_HOME=/itcast/hadoop-2.6.4 export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/nativeexport HADOOP_OPTS="-Djava.libr

nodename nor servname provided, or not known

mac来使用redis然后产生上述错误,据说是用户名的问题 解决: 打开终端: cat /private/etc/hosts sudo vi /private/etc/hosts 将错误的那个名字加入到hosts当中 127.0.0.1      错误的名字 然后保存退出 刷新下 dscacheutil -flushcache 错误解决.

Could not resolve hostname 。。。。。。: Name or service not known

这个是ssh基本操作的连接,当你配置完ssh之后,然后明明是正确的,然后你使用命令: ssh  localhost然后出现了 Could not resolve hostname github.com: Name or service not known 等等类似的话,那么说明你忘记了一个配置就是: /etc/hosts文件的映射: 如图配置就可以了.

SVN: Could not resolve hostname 解决方法_

svn 报错如下 org.tigris.subversion.javahl.ClientException: RA layer request failed svn: OPTIONS of '[你的svn地址]': Could not resolve hostname `svn.123.net': 不知道这样的主机. (http://svn.123.net:82) 1.进入  dos  模式 ping svn.123.net 会看到  对应的ip 地址   比如   10.0.1.3 2.找到自