Re: ssh time out and cannot reconnect



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 :(



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...@xxxxxxxxx |
|------------------------------------/------------------------------------- |

.



Relevant Pages

  • 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)
  • Re: The page cannot be displayed - message received after being idle
    ... > I have found the only way to solve the problem is to reboot the ... saved the same report created when the interface was working normally. ... E.g. netstat -an may be showing a connection which existed prior ... I just poked around in the Network Connections Control Panel ...
    (microsoft.public.windows.inetexplorer.ie6.browser)