简体   繁体   English

无法克隆github存储库

[英]Unable to clone github repository

I have generated ssh keys from my terminal and placed an entry in my SSH keys section in github.com. 我已经从终端生成了ssh密钥,并在github.com的SSH密钥部分中放置了一个条目。

After that, I am just trying to clone my repository, but I get the following error message : 之后,我只是尝试克隆我的存储库,但收到以下错误消息:

git clone git@github.com:XYZXY/XXXXXXXXXX.git

Initialized empty Git repository in /home/XYZXY/.ssh/XXXXXXXXXXXXX/.git/
ssh: connect to host ssh.github.com port 22: Connection refused
fatal: The remote end hung up unexpectedly

I tried this one too : 我也尝试过这个:

ssh -T git@github.com
ssh: connect to host ssh.github.com port 22: Connection refused

My question is : 我的问题是:

1) Is source side blocking the connection ? 1)源端是否阻塞了连接?
2) Is Target not allowing the connection ? 2)Target不允许连接吗?

Try running this command for more information. 尝试运行此命令以获取更多信息。

telnet ssh.github.com 22

You should see something like this. 您应该会看到类似这样的内容。

~ $ telnet ssh.github.com 22
Trying 192.30.253.122...
Connected to ssh.github.com.
Escape character is '^]'.
SSH-2.0-libssh-0.7.0

If you do not, then something (possibly a firewall block?) is preventing you from accessing github. 如果不这样做,那么某种原因(可能是防火墙阻止?)阻止您访问github。

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

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