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,336 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,553
- 6
- 33
- 45
systemctl: command not found
. – hxysayhi Jun 28 '17 at 09:31systemctl
are used from ubuntu15 – hxysayhi Jun 28 '17 at 10:31