1831867 Members
2832 Online
110031 Solutions
New Discussion

sshd

 
John Schultz_3
Advisor

sshd

when I attempt to start the SSH service (using service sshd start) i get a failed error. the permissions to the ssh files in /etc/ssh are 600. The messages log in /var/log/messages that apply to this issue simply state "aug 30 04:22:51 {hostname} sshd: failed".

I have tried everything I can possibly think of with out any resolution. Now I ask the experts.....

Thank you in advanced for your assistance.
5 REPLIES 5
John Schultz_3
Advisor

Re: sshd

Additional Information:
running "netstat -ntlp | grep ssh" returns "tcp 0 0.0.0.0.0:22 0.0.0.0:* Listen 4096/sshd"

And the /etc/services file lists both a udp and tcp port for the SSH.

chkconfig --list sshd returns "sshd 0:off 1: off 2:on 3:on 4:on 5:on 6:off"

John Schultz_3
Advisor

Re: sshd

ok, now im really going to go nuts. I have stopped the service and then started the service. According to the daemon, the service failed to start. However when i check the status, it tells me that the service is running. and when I attempt to SSH remotely, I am able to connect. Question.... Does the host name have to be a valid name? According to the startup screens, the hostname may be incorrect.... could this be the root of the issue?
Dirk Wiedemann
Respected Contributor

Re: sshd

Hi

please try running the sshd with debuglevel. For that you can start the sshd interactive at the prompt with option -d (-d level1, -dd level 2 and -ddd level3).
the daemon sends verbose output to syslog and runs not in the background. With debuglevel you can run only one session.

Dirk
John Schultz_3
Advisor

Re: sshd

When I tried service sshd start -ddd it still told me failed.

What should I try next?
Dirk Wiedemann
Respected Contributor

Re: sshd

Is there any axpatiated output while starting with -ddd?