解決ubuntu啟動SSH服務出現“Failed to start sshd.service: Unit sshd.service not found.”


重現錯誤

在使用apt-get install openssh-server安裝SSH后,使用service sshd start開啟SSH服務時提示:
Failed to start sshd.service: Unit sshd.service not found.

解決方案:

添加ssh.service

systemctl enable ssh.service


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM