sshd启动报错解决:sshd re-exec requires execution with an absolute path

2020/05/15 11:13
阅读数 1.4W
# sudo /usr/sbin/sshd
如下报错:
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

解决:
# 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

 

展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部