note to the reader:
for me (ubuntu 14.xx) only Bryan Agee's answer worked:
/etc/init/ssh.conf: comment out the "start on filesystem or runlevel..." line
why won't the others do?
sudo mv /etc/init/ssh.conf /etc/init/ssh.conf.disabled
will result in completly deactivating the service. It is then not startable through "service ssh start" anymore.
update-rc.d ssh enable # sets the default runlevels to on
does simply not work (perhaps uses different autostart routine)
/etc/init/ssh.conf.override with "manual"
simply doesnt work
touch /etc/ssh/sshd_not_to_be_run
also completly disables the system
sudo apt-get install bum
nice software, but it doesn't show ssh, so nothing to do here
person questioning:
why are the above answeres even here? is the start system so complicated or does nobody tries his solutions? oO
echo manual | sudo tee /etc/init/ssh.conf.override
, see also how-to-enable-or-disable-services – here Jan 02 '15 at 09:48echo manual | sudo tee /etc/init/ssh.conf.override
seems like a much better answer, becausesudo mv /etc/init/ssh.conf /etc/init/ssh.conf.disabled
also prevents starting the server manually without changing it back every time. – Brian Z Jun 07 '15 at 04:19ssh.conf.override
does not work for me,ssh.override
instead. – fikr4n Feb 28 '16 at 01:22update-rc.d
(or equivalent) to do that. – Reinier Post Jun 27 '16 at 09:10