Tag Archives: sshd re-exec requires execution with an absolute path

sshd Start Report Error: sshd re-exec requires execution with an absolute path

# sudo /usr/sbin/sshd
Error:
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_ecdsa_key
Could not load host key: /etc/ssh/ssh_host_ed25519_key
Missing privilege separation directory: /run/sshd

Solution:
# sudo ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
# sudo ssh-keygen -t ecdsa -f  /etc/ssh/ssh_host_ecdsa_key
# sudo ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key