我無法在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。 –