First, go to linux Through the physical terminal, and manually check ssh to find that it is not running.
/Etc/init. d/sshd status
Sshd is stopped
Manually start the service and report permission errors.
/Etc/init. d/sshd start
Starting sshd:/var/empty/sshd must be owned by root and not group or world-writable.
[FAILED]
Run the rpm-V command to check that the ssh software package is normal, but the owner of a directory is incorrect.
Rpm-V openssh-server
S.5...... c/etc/ssh/sshd_config
... U.../var/empty/sshd
It is found that the owner of this directory is not root, so an error is reported when the ssh service is started.
Ls-ld/var/empty/sshd/
D -- x 2 vu00106 root 1024 Feb 2 2005/var/empty/sshd/
Changed to root owner. started successfully.
Chown root/var/empty/sshd/
/Etc/init. d/sshd start
Starting sshd: [OK]
Now the problem is fixed.
In addition, you can try:
This is a permission issue.
You can take the following two steps to solve the problem:
Chown-R root. root/var/empty/sshd
Chmod 744/var/empty/sshd
Service sshd restart
You can solve the problem above.