Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

openssh sshd stops imediately

Status
Not open for further replies.

gosuc2000

Technical User
Jun 2, 2004
59
DE
Hi all,

I have a strange sshd -problem. When I start sshd, it returns an exit-code of 0, but in /var/log/messages it says
sshd[7688]: fatal: daemon() failed: Success
But when I start the daemon in debug-mode, it works o.k.

I can connect from another system as expected for one session.

Unfortunately there are no more infos in "messages", even if I set logmode to verbose or debug.

Has anybody an idea what might be wrong?

Any helpis apreciated.

Regards,

Fred
 

ps -e|grep ssh just shows :
3128 ? 00:00:00 ssh-agent

There is no sshd running. By the way, if i use the
boot-startupscript (Suse: /etc/init.d/sshd start),
it confirms the start of sshd , but checking for a sshd
daemon doesn't show the sshd daemon running. Instead, I get the above mentioned message in /var/log/messages.

If I try to start the sshd a second time like this, it
replies "failed".
I also checked the presence of a sshd.init.pid file, but
this was never created. From what I understand, this means
that sshd was not started.
I also checked the access-permissions of ~/.ssh, it is
755, /etc/ssh is 755, the host-keys have 600 and the
public keys have 644.

Fred

 
Something might have been corrupted.
I de-installed openssh and re-installed it, but
after installation I got the simple message from YAST,
'' the following product shows an error: openssh''
I could not remedy that,even not after re-installing
openssh.
By trying to de- and reinstall openssl, I almost busted
the system, because about 200 progs depended on openssl.
So after that I decided to completely reinstall the system.
It's o.k. now.

By searching in the net for the above errormessage in "messages", I only found articles about openssl - sources.


So I think you were right for suspecting openssl, as
openssh makes use of the openssl libraries.(I think).

Wow, that was a long lasting experience, so thank you
very much for that tip.


Regards,

Fred




 
Next time you want to reinstall a package, just get the RPM and use --force to install it on top of the existing one.
 
I am having the same problem with the sshd daemon. I installed from the SuSE 9.1 cds and the sshd daemon fails on startup. What would you suggest? I tried a reinstall and the same thing happens. I am thinking about removing openssl and all corresponding programs. (Yes I will make a list of programs that need to be removed). Then reinstall a new version of openssl and programs removed. Though any help would be appreciated. I want to get sshd running. Thanks for the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top