You are not logged in.

#1 2008-04-28 15:40:11

axion419
Member
Registered: 2007-04-12
Posts: 185

SSH Stopped working After Reboot.

This morning, our phones were acting wierd, so I ssh'd into the box and rebooted it.  Upon the reboot, I now get connection refused when i go to ssh.  On the Local machine, i cant even ssh to myself.

I know sshd is running, i did a /sbin/chkconfig --list|grep sshd and it shows as running.  I checked IPtables and the hosts.allow file, the ports are open, and the file is set to Allow all.  the deny file is empty.  Since I didnt set this server up (boss did) could we have got hacked?  Since its set to allow anyone, and now I cant get in.  I can still log in as root on the local machine, and if I do a service sshd stop, i get [FAILED] like I dont have permission, but it is indeed running.  Any ideas would be awesome.  Thanks, Justin.

Offline

#2 2008-04-28 18:52:36

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: SSH Stopped working After Reboot.

chkconfig? This doesn't appear to be an Archlinux question. You will definitely get more responses asking in a location more related to the distro you're using.

Offline

#3 2008-04-28 18:56:08

axion419
Member
Registered: 2007-04-12
Posts: 185

Re: SSH Stopped working After Reboot.

heh, sorry, it is centos, BUT this forum is  one of the most intelligent communities I know of smile

Offline

#4 2008-04-29 00:21:48

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: SSH Stopped working After Reboot.

Has ssh bound to the correct IP and Port?

netstat -ln | grep 22

Change the 22 to whatever port ssh should be running on

You should see something like this (taken from my home server):

fukawi2 ~  $ netstat -ln | grep 22
tcp        0      0 192.168.1.5:22          0.0.0.0:*               LISTEN

Last edited by fukawi2 (2008-04-29 00:22:57)

Offline

Board footer

Powered by FluxBB