简体   繁体   English

GIT SSH不起作用

[英]GIT SSH is not Working

I previously had the problem My Problem in stackoverflow Question and that is solved by the answer provided by our stackoverflow community member. 我以前有问题stackoverflow Question中的My Problem ,这是由我们stackoverflow社区成员提供的答案解决的。

Now i tried to use ssh for cloning one of the protected repository in Windows 7, so first i created the public key using this url link . 现在,我尝试使用ssh克隆Windows 7中受保护的存储库之一,因此首先我使用此url 链接创建了公共密钥。

everything is working for me as specified in the url after following the steps, except when i try to do the 4th step that is "$ ssh -T git@github.com" i got the following error 按照以下步骤操作后,一切对我来说都是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

Please help me in connecting to the ssh to access the private repositories. 请帮助我连接到SSH以访问私有存储库。

You need to use for step 4: 您需要使用第4步:

ssh -T git@github.com

(not ssh -T git@ssh.github.com : ssh.github.com doesn't exist) (不是ssh -T git@ssh.github.comssh.github.com不存在)


If the error message persists: 如果错误消息仍然存在:

It shouldn't be an ~/.ssh/config issue , since you are not using an SCP syntax . 这不应该是~/.ssh/config问题 ,因为您没有使用SCP语法


Considering that the OP Mohamed Hussain are trying to ssh to a private server (and not github.com), the OP confirms : 考虑到OP Mohamed Hussain正在尝试SSH到私有服务器(而不是github.com),OP 确认

the problem here is my network firewall is blocking the IP and port number 22. 这里的问题是我的网络防火墙阻止了IP和端口号22。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM