4

I have restarted my system remotely, but now when I try to ssh, I get the message

ssh: connect to host desktop.hostname port 22: Connection timed out

And when I try to ping it:

PING desktop.hostname (111.111.111.11) 56(84) bytes of data.
From localhost (222.222.222.22) icmp_seq=1 Destination Host Unreachable

Is there a way to remotely access my computer?

Jorge Castro
  • 73,717

3 Answers3

5

By default, connection to network go up when the user login. So, if you have not configured your machine to login automatically, your network connection is down.

The solution is to set the connection as a "system connection" in network manager: in this way the connection go up when the machine boot up, and do not wait for a user to login.

enzotib
  • 96,093
1

Unfortunately a remote Linux server may not always re-start correctly, and will then require human intervention (on site).

This can sometimes be resolved using out-of-band equipment, which supports power-cycling (on, off) and/or a serial console connection.

david6
  • 14,528
  • 5
  • 38
  • 46
0

Possible failures:

  1. SSH daemon is not running because it is not a service marked to run at startup. In which case you'll need to start the ssh daemon and then also mark it as a service to run at startup next time. There are some interesting methods to use php or other web services to attempt to start ssh remotely, but they are complex and depend a great deal on there being existing security violations. LOL

  2. Networking is down. Unfortunately, that must be resolved at the server as well.

  3. Firewall is blocking you. Also must be resolved at the server.

  4. SSH is now (somehow) listening on the wrong port. Not likely, but not to be overlooked as a possibility.

  5. And the remote possibility that the server is actually off or failed boot. If this was the server's first reboot after or during an install, however, this is a measurable percentage.

muru
  • 207,228