sshd has failed
Hello Everyone,
First of all I don't have KVM access or anything else, Second I tried to uninstall SSHD and install again didn't solve the problem. If someone can tell me how can change /var/empty/sshd folder permission from WHM/Cpnel I think I can fix the problem.
I hope someone can help me.
Service Error
(XID 2ptdbd) The "sshd" service failed to start.
Startup Log
systemd[1]: sshd.service: main process exited, code=exited, status=255/n/a
systemd[1]: Failed to start OpenSSH server daemon.
systemd[1]: Unit sshd.service entered failed state.
systemd[1]: sshd.service failed.
Log Messages
Nov 28 13:59:12 server sshd: /var/empty/sshd must be owned by root and not group or world-writable.
-
Forget to add versions; Centos 7.4 and Cpanel version v68.0.16 0 -
Hello, You can't manipulate file/directory permissions for system files via Web Host Manager, but you could try temporarily starting a new instance of SSH using the SSH autofixer referenced at: SSH Connection Denied Thank you. 0 -
Hello, You can't manipulate file/directory permissions for system files via Web Host Manager, but you could try temporarily starting a new instance of SSH using the SSH autofixer referenced at: SSH Connection Denied Thank you.
Yes, I tried this before and here is the result. AutoFixer Execution Requesting script ... Done. Executing script ... Attempting to locate sshd binaries installed on the system ...
Located /usr/sbin/sshd
Done.
Killing exisiting sshd processes...
Done.
configuring sshd to run on port 22
Could not load host key: /etc/ssh/ssh_host_dsa_key /var/empty/sshd must be owned by root and not group or world-writable. failed to start /usr/sbin/sshd ...
Done.0 -
Hello, There's no additional method of solving that issue without console access to the system. Since that's not possible (per your initial post), then you may need to report this to your provider or data center so they can address the issue. Thank you. 0 -
Thank you, for your response but I wish there is a way to solve this issue easily. I solved the problem with different approach. I'm using Google Cloud Services and I remember Google allows me to run Startup script and I use that to change folder permission and problem solved. Here is the trick :) I hope will help someone else. Under VM instance details, there is place name "Custom metadata" If you add this code (double quotes just for separation each input field) and restart the server, will solve the issue. "startup-script" "chown root:root /var/empty/sshd" 0 -
Hello, I'm glad to see you were able to solve the issue. Thank you for updating us with the outcome. 0
Please sign in to leave a comment.
Comments
6 comments