Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
GIT SSH不工作_Git_Github_Git Bash - Fatal编程技术网

GIT SSH不工作

GIT SSH不工作,git,github,git-bash,Git,Github,Git Bash,我以前遇到过这个问题,我们的stackoverflow社区成员提供的答案解决了这个问题 现在我尝试使用ssh克隆Windows 7中的一个受保护存储库,因此首先我使用此url创建了公钥 按照url中指定的步骤,除了我尝试执行第四步“$ssh-T”之外,其他一切都在为我工作git@github.com“我犯了以下错误 mohamed_hussain@18 ~/.ssh $ ssh -T -p 443 git@ssh.github.com ssh: ssh.github.com: no addr

我以前遇到过这个问题,我们的stackoverflow社区成员提供的答案解决了这个问题

现在我尝试使用ssh克隆Windows 7中的一个受保护存储库,因此首先我使用此url创建了公钥

按照url中指定的步骤,除了我尝试执行第四步“$ssh-T”之外,其他一切都在为我工作git@github.com“我犯了以下错误

mohamed_hussain@18 ~/.ssh 
$ ssh -T -p 443 git@ssh.github.com 
ssh: ssh.github.com: no address associated with name

请帮助我连接到ssh以访问专用存储库。

步骤4需要使用:

ssh -T git@github.com
(不是
ssh-Tgit@ssh.github.com
ssh.github.com
不存在)


如果错误消息仍然存在:

  • 检查
    (“在我们执行维护时,目前有一小部分存储库不可用。”)
它不应该是,因为您没有使用


考虑到您正在尝试通过ssh连接到专用服务器(而不是github.com),OP:

这里的问题是我的网络防火墙阻止了IP和端口号22


谢谢你的帮助,但是GITBASH仍然给了我和mohamed一样的回答_hussain@18~/.ssh$ssh-Tgit@github.comssh:github.com:没有与关联的地址name@MohamedHussain我理解,但第4步用于检查公钥是否已发布到github,以及对github的ssh访问是否正常。在您的情况下,您需要执行类似的测试,但要执行的是
err pop.it.mutr.com
,而不是github,这意味着您需要确保您的公钥已添加到
err pop.it.mutr.com:~git/.ssh/authorized_keys
文件中(这在github中根本看不到,因为github将从客户端完全屏蔽).@Mohamedhussan没问题。我确认github与您的问题无关。尝试使用IP地址进行克隆,看看是否效果更好。@MohamedHussain如果不尝试解析IP,git克隆会不会出现
git克隆ssh://git@xxx.xxx.xxx.xxx/我的原型.git
工作?(使用
xxx.xxx.xxx.xxx
作为
err pop.it.mutr.com
的ip地址)@mohamedhussan确定:在服务器上尝试
sshd-d
有助于查看ssh请求的解释方式。