ssh连接超时 [英] ssh connection timed out

查看:119
本文介绍了ssh连接超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在git中将ssh SSH到github或bitbucket或gitlab.
通常,我会收到以下错误消息:如何避免它?

I am not able to ssh in git to github or bitbucket or gitlab.
I typically have the following error message: how can I avoid it?

===========输出==========

========== output ============

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

推荐答案

杀死SSH进程并重新启动它.它已经解决了我类似的问题.我发现有多个SSH实例,在这种情况下,您必须全部杀死它们.

Kill the SSH process and restart it. It has solved me similar issues. I have found that multiple instances of SSH, in that case you have to kill them all.

这篇关于ssh连接超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆