ubuntu 启动任务

ssh 没有开启启动

原因不明,第一次使用ubuntu

我尝试了
update-rc.d ssh enable
修改 /etc/rc.local, 添加:service sshd start 或 /etc/init.d/sshd start
但是都不行

阅读 2k
2 个回答

在新版 ubuntu, 开机自启动应使用 systemctl enable ssh 命令,
启动服务 systemctl start ssh
重启服务 systemctl restart ssh

你的意思是开机没有自启,还是启动ssh服务没有起来?

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题