Linux Ubuntu Debian Missing privilege separation directory: /var/run/sshd

 service sshd status
‚óŹ ssh.service - OpenBSD Secure Shell server
   Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
   Active: failed (Result: start-limit-hit) since Wed 2019-10-02 11:07:54 EDT; 36s ago
  Process: 476 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=255)

Oct 02 11:07:54 box systemd[1]: Failed to start OpenBSD Secure Shell server.
Oct 02 11:07:54 box systemd[1]: ssh.service: Unit entered failed state.
Oct 02 11:07:54 box systemd[1]: ssh.service: Failed with result 'exit-code'.
Oct 02 11:07:54 box systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
Oct 02 11:07:54 box systemd[1]: Stopped OpenBSD Secure Shell server.
Oct 02 11:07:54 box systemd[1]: ssh.service: Start request repeated too quickly.
Oct 02 11:07:54 box systemd[1]: Failed to start OpenBSD Secure Shell server.
Oct 02 11:07:54 box systemd[1]: ssh.service: Unit entered failed state.
Oct 02 11:07:54 box systemd[1]: ssh.service: Failed with result 'start-limit-hit'.

Oct  2 11:09:08 box sshd[511]: Missing privilege separation directory: /var/run/sshd
Oct  2 11:09:08 box systemd[1]: ssh.service: Control process exited, code=exited status=255
Oct  2 11:09:08 box systemd[1]: Failed to start OpenBSD Secure Shell server.
Oct  2 11:09:08 box systemd[1]: ssh.service: Unit entered failed state.
Oct  2 11:09:08 box systemd[1]: ssh.service: Failed with result 'exit-code'.
Oct  2 11:09:08 box systemd[1]: ssh.service: Service hold-off time over, scheduling restart.

Solution

mkdir -p /var/run/sshd
echo "mkdir -p /var/run/sshd" >> /etc/rc.local


Tags:

linux, ubuntu, debian, separation, directory, var, sshd, ssh, openbsd, shell, server, lib, systemd, enabled, vendor, preset, active, wed, edt, execstartpre, usr, sbin, exited, oct, scheduling, restart, repeated, mkdir, echo, quot, etc, rc,

Latest Articles

  • Linux Ubuntu Cannot Print Large Images
  • Cannot Print PDF Solution and Howto Resize
  • Linux Console Login Screen TTY Change Message
  • Apache Cannot Start Listening Already on 0.0.0.0
  • MySQL Bash Query to pipe input directly without using heredoc trick
  • CentOS 6 and 7 / RHEL Persistent DHCP Solution
  • Debian Ubuntu Mint rc-local service startup error solution rc-local.service: Failed at step EXEC spawning /etc/rc.local: Exec format error
  • MySQL Cheatsheet Guide and Tutorial
  • bash script kill whois or other command that is running for too long
  • Linux tftp listens on all interfaces and IPs by DEFAULT Security Risk Hole Solution
  • python import docx error
  • Cisco Unified Communications Manager Express Cheatsheet CUCME CME
  • Linux Ubuntu Debian Missing privilege separation directory: /var/run/sshd
  • bash how to count the number of columns or words in a line
  • bash if statement how to test program output without assigning to variable
  • RTNETLINK answers: Network is unreachable
  • Centos 7 how to save iptables rules like Centos 6
  • nfs tuning maximum amount of connections
  • qemu-kvm error "Could not initialize SDL(No available video device) - exiting"
  • Centos 7 tftpd will not work with selinux enabled