Starting sshd: Privilege separation user does not exist

Posted by admin     Category: Linux Administration

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 restart
Stopping sshd: [ OK ]
Starting sshd: [ OK ]

Another solution is to disable UsePrivilegeSeparation. Edit the sshd configuration file at /etc/ssh/sshd_config and change

UsePrivilegeSeparation yes
to
UsePrivilegeSeparation no

It is less secure but just another option.

Tags: , , , , ,

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-spam image