-1

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?

1 Answers1

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