Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-21-2011, 12:54 AM   #1
Registered: May 2004
Posts: 180

Rep: Reputation: 15
ssh: connect to host port 22: Connection timed out

I have 5 virtual machines, ranging from server01 to server05 based on virtualbox 4.0.2_OSEr35621, located at the same network section. The network config for 5 machines looks like

# Host is Debian server
# The config value has been changed.
iface eth0 inet static
address # other machines would be
My problem is sometimes connecting from server01 to other 4 machines (server02~server05) would be broken.

SSH client would print
ssh: connect to host server02 port 22: Connection timed out
The debug output of ssh client (ssh -vvv user@server02)
OpenSSH_5.5p1 Debian-5+b1, OpenSSL 0.9.8o 01 Jun 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to server02 [] port 22.
debug1: connect to address port 22: Connection timed out
ssh: connect to host server02 port 22: Connection timed out
The weird thing is the connection to server02 from host machine (which is also Debian) would not have e.g. borken pipes issue. So the ssh connection (host-> server02) works ok whilst connection from server01 to server02 returns timeout.

It seems to me the root cause might be underlying routing issue. But where can I check the log/ information to find out exactly what happened?

Old 06-21-2011, 12:07 PM   #2
Registered: Jul 2007
Location: Oregon
Distribution: Ubuntu, mostly.
Posts: 43

Rep: Reputation: 15
Looks to me like your IP address and gateway are set the same on your server01. That could be causing all sorts of havoc. Especially if the other systems also have set as their gateway.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh: connect to host port 22: Connection refused bijaya.kumar Linux - Networking 5 02-14-2012 04:39 PM
ssh: connection to host port: 22: Connection timed out lost connection cucolin@ Linux - Server 4 11-22-2011 06:15 AM
ssh: connect to host XXXX port 22: Connection timed out jv2112 Linux - Newbie 3 07-04-2010 04:42 PM
ssh:connect to host restart port 22: Connection refused myubuntu Linux - Software 20 02-22-2010 11:32 PM
ssh: connect to host thyme1 port 22: Connection timed out - solved abstom Linux - Server 1 09-19-2009 05:33 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:35 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration