This question is directly related to questions 1 and 2 . After the next run of the make install I received the following log

 (cd openbsd-compat && make) ./mkinstalldirs /usr/local/bin ./mkinstalldirs /usr/local/sbin ./mkinstalldirs /usr/local/share/man ./mkinstalldirs /usr/local/share/man/man1 ./mkinstalldirs /usr/local/share/man/man5 ./mkinstalldirs /usr/local/share/man/man8 ./mkinstalldirs /usr/local/libexec (umask 022 ; ./mkinstalldirs /var/empty) /usr/gnu/bin/install -c -m 0755 -s ssh /usr/local/bin/ssh /usr/gnu/bin/install -c -m 0755 -s scp /usr/local/bin/scp /usr/gnu/bin/install -c -m 0755 -s ssh-add /usr/local/bin/ssh-add /usr/gnu/bin/install -c -m 0755 -s ssh-agent /usr/local/bin/ssh-agent /usr/gnu/bin/install -c -m 0755 -s ssh-keygen /usr/local/bin/ssh-keygen /usr/gnu/bin/install -c -m 0755 -s ssh-keyscan /usr/local/bin/ssh-keyscan /usr/gnu/bin/install -c -m 0755 -s sshd /usr/local/sbin/sshd /usr/gnu/bin/install -c -m 4711 -s ssh-keysign /usr/local/libexec/ssh-keysign /usr/gnu/bin/install -c -m 0755 -s ssh-pkcs11-helper /usr/local/libexec/ssh-pkcs11-helper /usr/gnu/bin/install -c -m 0755 -s sftp /usr/local/bin/sftp /usr/gnu/bin/install -c -m 0755 -s sftp-server /usr/local/libexec/sftp-server /usr/gnu/bin/install -c -m 644 ssh.1.out /usr/local/share/man/man1/ssh.1 /usr/gnu/bin/install -c -m 644 scp.1.out /usr/local/share/man/man1/scp.1 /usr/gnu/bin/install -c -m 644 ssh-add.1.out /usr/local/share/man/man1/ssh-add.1 /usr/gnu/bin/install -c -m 644 ssh-agent.1.out /usr/local/share/man/man1/ssh-agent.1 /usr/gnu/bin/install -c -m 644 ssh-keygen.1.out /usr/local/share/man/man1/ssh-keygen.1 /usr/gnu/bin/install -c -m 644 ssh-keyscan.1.out /usr/local/share/man/man1/ssh-keyscan.1 /usr/gnu/bin/install -c -m 644 moduli.5.out /usr/local/share/man/man5/moduli.5 /usr/gnu/bin/install -c -m 644 sshd_config.5.out /usr/local/share/man/man5/sshd_config.5 /usr/gnu/bin/install -c -m 644 ssh_config.5.out /usr/local/share/man/man5/ssh_config.5 /usr/gnu/bin/install -c -m 644 sshd.8.out /usr/local/share/man/man8/sshd.8 /usr/gnu/bin/install -c -m 644 sftp.1.out /usr/local/share/man/man1/sftp.1 /usr/gnu/bin/install -c -m 644 sftp-server.8.out /usr/local/share/man/man8/sftp-server.8 /usr/gnu/bin/install -c -m 644 ssh-keysign.8.out /usr/local/share/man/man8/ssh-keysign.8 /usr/gnu/bin/install -c -m 644 ssh-pkcs11-helper.8.out /usr/local/share/man/man8/ssh-pkcs11-helper.8 rm -f /usr/local/bin/slogin ln -s ./ssh /usr/local/bin/slogin rm -f /usr/local/share/man/man1/slogin.1 ln -s ./ssh.1 /usr/local/share/man/man1/slogin.1 if [ ! -d /usr/local/etc ]; then \ ./mkinstalldirs /usr/local/etc; \ fi /usr/local/etc/ssh_config already exists, install will not overwrite /usr/local/etc/sshd_config already exists, install will not overwrite /usr/local/etc/moduli already exists, install will not overwrite /usr/local/etc/ssh_host_key already exists, skipping. /usr/local/etc/ssh_host_dsa_key already exists, skipping. /usr/local/etc/ssh_host_rsa_key already exists, skipping. /usr/local/sbin/sshd -t -f /usr/local/etc/sshd_config Privilege separation user sshd does not exist *** Error code 255 (ignored) 
  • one
    for the future: no need to dump the log of the entire operation in the post, the last 5-10 lines are enough - Gedweb

1 answer 1

sshd is run here to test the specified configuration file:

 /usr/local/sbin/sshd -t -f /usr/local/etc/sshd_config Privilege separation user sshd does not exist 

the program reports an error: according to the configuration (possibly by default), “privilege separation” is required (the option UsePrivilegeSeparation yes ), i.e. running child processes that perform "real work" on behalf of an unprivileged sshd user.

possible exits:

  1. create this user in advance ( useradd sshd command).
  2. specify - do not use “privilege separation” (the option UsePrivilegeSeparation no in the specified configuration file).