Ubuntu start task

ssh does not enable startup

for unknown reasons, use ubuntu for the first time

I tried
update-rc.d ssh enable
modify / etc/rc.local, add: service sshd start or / etc/init.d/sshd start
, but neither

May.31,2022

do you mean that the boot does not start automatically, or that the ssh service does not start up?


in the new version of ubuntu, you should use systemctl enable ssh command,
start service systemctl start ssh
restart service systemctl restart ssh

Menu