The error message “Starting sshd: Privilege separation user sshd does not exist FAILED” is received on restarting the SSHD service. It indicates that the user ‘sshd’ does not exist at all. To fix the sshd privileges issue, you need to add the ‘sshd’ user on the server.
Edit the file /etc/passwd and add the below line:
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
and the below line in the /etc/group file
sshd:x:74:You will now be able to restart the sshd service.
# /etc/init.d/sshd restartAnother solution is to disable UsePrivilegeSeparation. Edit the sshd configuration file at /etc/ssh/sshd_config and change
Stopping sshd: [ OK ]
Starting sshd: [ OK ]
UsePrivilegeSeparation yesIt is less secure but just another option.
to
UsePrivilegeSeparation no
No comments:
Post a Comment