我无法在git中将ssh传递给github或bitbucket或gitlab。
我通常有以下错误信息:我该如何避免它?ssh连接超时
==========输出============
ssh -T [email protected] -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测试连接:'telnet github.com 22'。如果此测试成功,您可以排除防火墙并知道sshd正在运行。 – Cyrus
不要担心,ssh问题(所有18K)都是关于主题的,特别是当它们与Git相关时,它是用于开发的工具。 – VonC
@Cyrus它不工作 的telnet:无法连接到远程主机:连接超时 不仅与github上也到位桶和gitlab。 –