我需要连接到服务器git。
http://help.github.com/win-set-up-git/我做了所有的事情,4点,我将ssh key添加到服务器接口。但是5分怎么样呢?
我有可用的存储库nick@source.server.com:title.git
但是如果我输入链接,我会得到一个错误
ssh: source.server.com:title.git: no address associated with name
发布于 2012-03-22 07:23:52
这意味着ssh不能连接到source.server.com
(名称不能解析成ip地址),所以ssh正在寻找一个%HOME%\.ssh\config
文件,在这个文件中它可以看到在看到source.server.com
时应该使用的实际主机名。
请参阅config file here的示例。
(注意:在Windows上默认不定义HOME
,所以别忘了定义它)
GitHub帮助页面上的第5点是关于测试到GitHub的ssh连接,而不是到您的服务器的。
ssh -T git@github.com
https://stackoverflow.com/questions/9817967
复制相似问题