Privilege separation user “sshd” does not exist

If you encounter this error while starting openssh server, it means either /etc/passwd file or some entries for sshd user does not exist in the /etc/passwd file.

To fix this error, you need to

Add this line into /etc/passwd,

sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin

and this line into /etc/group


It should fix the problem.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.