我无法通过ssh连接到GitHub、Bitbucket或GitLab。通常会出现以下错误信息:如何避免这种情况?
========== 输出 ============
ssh -T git@github.com -i ~/.ssh/id_rsa -v
OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g 1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to github.com [192.30.255.113] port 22.
debug1: connect to address 192.30.255.113 port 22: Connection timed out
debug1: Connecting to github.com [192.30.255.112] port 22.
debug1: connect to address 192.30.255.112 port 22: Connection timed out
ssh: connect to host github.com port 22: Connection timed out
telnet github.com 22
。如果这个测试成功了,你就可以排除防火墙的问题,并且知道sshd正在运行。 - Cyrussudo nmap 192.30.255.113 -p 22
可能会有所帮助。 - user354134