I installed openssh-server,it will start ssh server on boot automatic.But I don't want that.How to forbid ssh server to autostart on boot?
Asked
Active
Viewed 1,409 times
1 Answers
1
You can disable sshd from starting at boot with command
sudo systemctl disable sshd.service
Edit 1
Rename /etc/init/sshd.conf to /etc/init/sshd.conf.disabled.
sudo mv /etc/init/sshd.conf /etc/init/sshd.conf.disabled
Edit 2
Or you can try command
sudo update-rc.d sshd disable
2707974
- 10,758