sshd报错Privilege separation user sshd does not exist的解决办法
生活随笔
收集整理的這篇文章主要介紹了
sshd报错Privilege separation user sshd does not exist的解决办法
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
使用sshd -t 命令排查提示
Privilege separation user sshd does not exist
使用systemctl status sshd命令排查不正常
檢查ID:sshd是否存在
id sshd
grep sshd /etc/passwd
檢查ID:sshd歷史配置信息
grep sshd /etc/passwd.bak
檢查ID:sshd歷史所在用戶組是否存在
grep sshd
如果sshd歷史所在用戶組不存在,先添加
groupadd sshd
使用命令添加sshd這個ID,
useradd -u 66 -g sshd -c “SSH daemon” -d /var/lib/sshd -s /sbin/nologin -m sshd
或編輯添加此行到/etc/passwd/
sshd?66:88:SSH daemon:/var/lib/sshd:/sbin/nologin
查看ID:sshd是否添加成功
grep sshd /etc/passwd
使用sshd -t 命令復查
重啟sshd服務
systemctl restart sshd
查看sshd服務狀態
systemctl status sshd
總結
以上是生活随笔為你收集整理的sshd报错Privilege separation user sshd does not exist的解决办法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 证书信任管理器(用于https请求) X
- 下一篇: 科学电子计算机百分数怎么弄,计算器上的百