I rebooted the server and now I can't use ssh. [...]
Hello Fertech
To me looks like there's no problem with port blocking or similar, but it does look like ssh isn't running, or isn't running properly. From the description, my guess is that it's not set to start correctly by your reboot, and previously you'd started it manually in a different way -- would that have been possible?
On the server, check to see if the process is running:
Code:
$ ps ax | fgrep ssh
1726 ? Ss 0:00 /usr/sbin/sshd -D
If it is, on the server, see if you can ssh to itself:
Code:
$ ssh localhost
user@localhost's password: [...]
If you can get in, then your problem is with networking, port filtering or similar. If you can't get in locally, then your problem is with ssh, which is what I'm guessing is happening. Try looking in your log files for any start up errors, in particular problems allocating the port.
Look for this kind of thing in /var/log/auth.log
Code:
Dec 21 15:35:27 master sshd[1101]: Server listening on 0.0.0.0 port 22.
Hope that's of some help isolating your problem.
Kind regards,
Jonathan.
Bookmarks