zador.blood.stained Posted July 10, 2017 Posted July 10, 2017 sudo systemctl disable --now sshd sudo systemctl enable --now sshd This will disable/enable and immediately stop/start the sshd daemon.
JohnQPublic Posted July 10, 2017 Author Posted July 10, 2017 I get systemctl: unrecognized option '--now" I also tried sudo systemctl disable ssh I did something but not disabling ssh (I tried with Putty).
zador.blood.stained Posted July 10, 2017 Posted July 10, 2017 8 minutes ago, JohnQPublic said: I get systemctl: unrecognized option '--now" --now was added in newer versions, so you need to use 2 separate commands instead sudo systemctl disable sshd sudo systemctl stop sshd sudo systemctl enable sshd sudo systemctl start sshd
Recommended Posts