Re: ssh time out and cannot reconnect



On Sun, 3 Feb 2008 13:11:10 -0800 (PST) xngse <ngse@xxxxxxxxx> wrote:
| Thanks, I rebooted this morning. Came home at 2pm and can connect
| between 2 and 4. Then it stopped again.
|
| debug1: Reading configuration data /Users/Jones/.ssh/gmmssh_config
| debug2: ssh_connect: needpriv 0
| debug1: Connecting to computer.abc..edu [xxx.xxx.xx] port 22.
| debug1: connect to address xxx.xxx.xxx port 22: Operation timed out
|
| I have a static IP and everything was working fine under Tiger (old
| computer).
| Very frustrating. I will do what you suggested tomorrow. The
| Serveralive in ssh is already set at 120.
|
| I think it has something to do with 2 hours.. I managed to log on for
| two hours :(

Also try making another connection while the first connection is still
working to see if there is a connection limit. If the second connection
cannot be made while the first connection is still working, then it may
be that once the first connection times out (for whatever reason yet to
be determined) the server still considers it to be present and does not
allow another connection. If that is so then two things need to be
fixed ... the time out and the max connections. However, if the second
connection can be made, check to see when it times out. Start BOTH ssh
commands with the "date" command following them on the command line like:

ssh user@host ; date

and see if both time out near the same time. Start the second one about
an hour after the first is started so that if they have a duration of 2
hours you can easily see that is happening.



|>
|> What happens when you try to connect again? ?Some possible scenarios are:
|>
|> 1. ?The new connection attempt also times out, with no connection made.
|> ? ? ssh: connect to host foo.example.com port 22: Connection timed out
|>
|> 2. ?The connection is refused.
|> ? ? ssh: connect to host foo.example.com port 22: Connection refused
|>
|> 3. ?The connection is made, but then dropped for some reason. Various
|> ? ? messages could result from this.
|>
|> | I go into the office, reboot, and i can ssh from home again.
|> |
|> | Any suggestion how to fix this?
|>
|> It sounds more like a networking issue. ?The office machine may have lost
|> its routing table or the gateway changed to a non-operating IP address.
|> Before rebooting the office machine the next day, login on the console as
|> root and check the routing table using "route -n" to see what it has. ?Also
|> check to see if there are any lame connections and if sshd is listening with
|> the command "netstat -antp | fgrep :22" (substitute 22 with whatever port
|> you are using if different).
|>
|> The office network may have become unreachable, or a firewall may be messing
|> with the connections. ?Try setting ServerAliveInterval to 120 seconds in
|> your ~/.ssh/config file on the client machine at home.
|>
|> If the problem persists, try running "tcpdump" with appropriate arguments to
|> monitor the traffic from home, under the "script" program to log it to a
|> file where you can see what happened to the connection (it may, for example,
|> still be active on the office machine).
|>
|> --
|> |---------------------------------------/---------------------------------- |
|> | Phil Howard KA9WGN (ka9wgn.ham.org) ?/ ?Do not send to the address below |
|> | first name lower case at ipal.net ? / ?spamtrap-2008-02-03-0...@xxxxxxxx |
|> |------------------------------------/------------------------------------- |
|

--
|---------------------------------------/----------------------------------|
| Phil Howard KA9WGN (ka9wgn.ham.org) / Do not send to the address below |
| first name lower case at ipal.net / spamtrap-2008-02-04-0733@xxxxxxxx |
|------------------------------------/-------------------------------------|
.



Relevant Pages

  • Re: ssh time out and cannot reconnect
    ...  The new connection attempt also times out, ... | I go into the office, reboot, and i can ssh from home again. ... Before rebooting the office machine the next day, ... The office network may have become unreachable, or a firewall may be messing ...
    (comp.security.ssh)
  • Re: Connecting a remote workstation to a domain
    ... I have also selected not to dial an initial connection before ... I assume the CEO does not have a workstation available at the main office, ... remark that you will have to reboot the workstation. ... After the login script has finished and if you have Premium, ...
    (microsoft.public.windows.server.sbs)
  • Re: Connecting a remote workstation to a domain
    ... Even setting up a low end workstation in the ... I have also selected not to dial an initial connection before ... remark that you will have to reboot the workstation. ... After the login script has finished and if you have Premium, ...
    (microsoft.public.windows.server.sbs)
  • Re: this sucks/connection issue
    ... just the same but now i lost my internet connection. ... network resources. ... it was dected and reinstalled on reboot, ...
    (alt.os.windows-xp)
  • Re: this sucks/connection issue
    ... the same but now i lost my internet connection. ... computer is not visible on the network, i might be screwed but oh ... it was dected and reinstalled on reboot, ... Yes my cable is nice and secure, modem and router is fine, as I am ...
    (alt.os.windows-xp)