亚洲国产第一_开心网五月色综合亚洲_日本一级特黄特色大片免费观看_久久久久久久久久免观看

Hello! 歡迎來到小浪云!


centos7 SSH啟動(dòng)失敗 報(bào)錯(cuò) job for sshd.service failed because the control



某用戶的centos7系統(tǒng)突然22端口無法遠(yuǎn)程了。求助我司給與協(xié)助。于是登錄到本地給予檢查,發(fā)現(xiàn)sshd 服務(wù)未運(yùn)行, 執(zhí)行systemctl sshd start  啟動(dòng)命令報(bào)錯(cuò) ssh啟動(dòng)失敗 報(bào)錯(cuò)job for sshd.service failed because the control process exited with error code. See systemctl status sshd.service and “journalctl -xe” for details

因此根據(jù)提示查看報(bào)錯(cuò)日志,執(zhí)行 systemctl status sshd.service

注意看關(guān)鍵報(bào)錯(cuò)日志:Permissions 0715 for  /etc/ssh/ssh_host_ed25519_key   其中 Permissions 意味著權(quán)限不夠。

因此給出錯(cuò)的文件加權(quán)限:chmod 600 /etc/ssh/ssh_host_ed25519_key

最后 啟動(dòng)sshd服務(wù) :systemctl sshd start

終于搞定!

相關(guān)閱讀