# 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
Similar Posts:
- An error is reported when starting sshd in the docker container
- Install a docker container in centos7 that can log in SSH
- How to Solve host key verification failed
- [Solved] SSH is disconnected as soon as it is connected
- [Solved] Forbid root, handle error sudo must be owned by uid 0
- WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! [How to Fix]
- [Solved] SSH connection server error: warning: remote host identification has changed!
- How to Solve Git Warning: possible DNS spoofing detected
- Mac remote service repair: warning: remote host identification has changed!
- linux sudo java : command not found