Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: SSH timing out

  • Subject: Re: SSH timing out
  • From: "Aaron Gray" <ang.usenet@xxxxxxxxx>
  • Date: Sun, 26 Feb 2006 18:27:26 -0000
  • Newsgroups: alt.linux
  • References: <469anpF9msrlU1@individual.net> <469dgsFa6tk9U1@individual.net> <46bmopF9udvsU1@individual.net> <dtrgv6$2ijs$1@godfrey.mcc.ac.uk>
  • Xref: news.mcc.ac.uk alt.linux:73920
> __/ [ Aaron Gray ] on Saturday 25 February 2006 18:42 \__
>
>>>> We have two remote servers both RedHat 9. One times out on SSH the 
>>>> other
>>>> does not.
>
>
> My initial, instinctive gut feeling: firewall. I have been down that route
> before. Check firewall policies and attempt to temporarily disable it.

Okay

>>>> How do I stop the one timing out from doing so ?
>>>
>>> It's difficult to say, but could look at your /etc/ssh/sshd_config and
>>> enable TCPKeepAlive on the server,
>>>
>>> TCPKeepAlive yes
>>
>> It does not appear to be in '/etc/ssh/sshd_config' as this is the same on
>> both systems.
>>
>> sshd_config config file has a KeepAlive but no TCPKeepAlive, so I tried
>> both, neither works.
>
>
> I wouldn't have thought that descending to that level was necessary.
>
>
>>> If the problem would be client side, then look at the 
>>> /etc/ssh/ssh_config,
>>> there you find ConnectTimeout, setting this to 0 should prevent client
>>> side disconects
>>>
>>> ConnectTimeout 0
>>>
>>>
>>> But there can still be other problems like a bed gateway in between, 
>>> which
>>> can cause the connection to break, but thats not so common.
>>
>> Yes it could possibly be the firewall router box on that server ?
>
>
> If the firewall is controlled by an intermediatery box, try some simpler 
> SSH
> tests that go in different routes. Try other remote connections like 
> telnet
> if necessary, even ping just to ensure nothing more fundamental is
> preventing a connection.

The connections fine it just times out sooner than I would like.

It may well be the firewall router as this is different from my second site 
which does not timeout.

Aaron



[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index