LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-08-2009, 01:38 PM   #1
abstom
LQ Newbie
 
Registered: Sep 2009
Posts: 1

Rep: Reputation: 0
ssh: connect to host thyme1 port 22: Connection timed out - solved


Almost always I can find answers to my issues in this forum but when I wasn't able to today I took matters into my own hands...

Checked some logs this a.m. and found the following error:

ssh: connect to host thyme01 port 22: Connection timed out
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: unexplained error (code 255) at io.c(454) [receiver=2.6.9]

Checked my firewall and all seemed well. Checked my sshd daemon and that was fine. Did some additional troubleshooting and found that one of my bad practices caused this. Turns out that one of my workstations I remotely back-up with rsync got rebooted and got a new IP address via DHCP. Because I do some port mapping on my router ("packets arriving at the router for port 'xyz' are forwarded to port 'xyz' at IP address '192.168.x.x'"), the packets weren't making it to the new IP address, thus the timed out error in the backup log file. Once I updated the port map on my router to the newly issued IP address, I could rsync/ssh again.

I'll be setting up a static IP for my workstation shortly to avoid this in the future.
 
Old 09-19-2009, 06:33 AM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
Or an alternate method would be to set up dhcp and dns for automatic updates.

For a simple network setup, that might be overkill. Your solution sounds like
a good one.
 
  


Reply


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: connection to host port: 22: Connection timed out lost connection cucolin@ Linux - Server 4 11-22-2011 07:15 AM
Enable connection timed out option in ssh msivadass Linux - Server 2 10-05-2008 02:44 PM
SSH Connection timed out davhak Linux - Networking 13 03-18-2007 04:41 AM
exim connection timed out error(host lookup is done fine) rmanocha Linux - Software 2 06-20-2004 01:40 AM
ssh: Connection timed out. [from school] nixel Linux - Networking 2 05-19-2004 01:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:24 AM.

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