[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

sshd has failed, please contact the sysadmin

Posted on 2011-03-24
10
Medium Priority
?
831 Views
Last Modified: 2012-05-11
Hello,

I'm currently having an issue connecting to my server via SFTP. The connection is working fine, however the client hangs during the authentication. I'm connecting to the server via SFTP using WinSCP. I have never had any issues until today. My local firewall is turned off. I don't have any antivirus or any other application that could be interfering with the connection. The SFTP connection was working fine until today. I also tried disabling IPtables in the remote server, but that did not help at all. The server has CentOS x86_64 and cPanel installed. I can see the sftp-server process being created during the connection. I'm getting the following information in /var/log/messages:

sftp-server[666]: session opened for local user x from [x.x.x.x]

I tried restarting SSHD via cPanel, however when I do that I get the following msg:


Waiting for sshd to restart...............finished.
sshd (/usr/sbin/sshd) running as root with PID 12670
sshd has failed, please contact the sysadmin.

After doing this, the SSH process works fine. I can connect to the SSH daemon without any problems. However the SFTP connection is not working as I stated above.

I'd appreciate any help with this.

If you need more information, please don't hesitate to ask me.

~paulie
0
Comment
Question by:_paulie
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
10 Comments
 
LVL 14

Expert Comment

by:svgmuc
ID: 35207089
Might be a hanging sftp sub process... have you tried scp?
If that works, I'd check

> ps xa | grep sftp

after stopping  the sshd. If it shows a process, kill it.
If that doesn't work, you will have to reboot the machine.
0
 

Author Comment

by:_paulie
ID: 35207133
Hello,

Thanks for your reply.

I tried that, the ps process is only returning the grep process.

Is rebooting the machine really necessary?

Do you by any chance have any idea of what the cause of the problem could be?

Thanks for your time.
0
 

Author Comment

by:_paulie
ID: 35207188
Hello,

I also tried connecting via SCP using WinSCP as client, but that did not work. WinSCP is getting stuck during the authentication.

Thanks
0
Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

 
LVL 14

Expert Comment

by:svgmuc
ID: 35207237
Well, you could ltrace the sshd process...
0
 

Author Comment

by:_paulie
ID: 35207280
Unfortunately, I've never done that before. Would you be kind to explain how it works? I'll follow your instructions carefully. Thank you!
0
 
LVL 14

Expert Comment

by:svgmuc
ID: 35207603
Check if SElinux is enforcing by typing

> sestatus

Check, if you can connect locally to the sshd.

> ssh user@localhost

If you get no response use the verbose mode

> ssh -v user@localhost

Let's see if we can discern something from the output.
0
 

Author Comment

by:_paulie
ID: 35207682
SELinux status is disabled.

I tried connecting to the ssh daemon, but I'm not receiving any response. Here is the output:

OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to localhost [127.0.0.1] port 22

That's all it says.

Thank you!
0
 
LVL 14

Expert Comment

by:svgmuc
ID: 35208587
Are you sure, the sshd is running?

Check via

> ps xa | grep sshd

If it only shows the grep or nothing at all, try to start it and check again.
If it doesn't work, please start sshd manually

> /usr/sbin/sshd -v

Does it tell you any reasons for aborting?
0
 

Author Comment

by:_paulie
ID: 35208655
Yes, sshd is running. When I try to connect to the sshd with -v it only prints the text i wrote above. If you wait 60 seconds, you get a time out error. Now the SFTP server seems to be working fine. I have no idea why it is working, but it's working. I did not restart sshd. I'm very confused.
0
 
LVL 14

Accepted Solution

by:
svgmuc earned 2000 total points
ID: 35208821
That is indeed confusing ;)
Might be a network issue... timeouts...
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We all know how boring and exhausting it is to transfer huge web projects developed locally to a webserver simply via FTP. The File Transfer Protocol is a really nice solution if you need to transfer small amounts of files, but if you're plannin…
Hello to you all, I hear of many people congratulate AWS (Amazon Web Services) on how easy it is to spin up and create new EC2 (Elastic Compute Cloud) instances, but then fail and struggle to connect to them using simple tools such as SSH (Secure…
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question