1004

How to disable SSH

Summary

In some environments, it might not be possible to have a ssh server running on NAbox, this KB explains how to disable it.

Warning

Note that without SSH enabled, some troubleshooting might be harder and require console access through the hypervisor.

To disable SSH in NAbox, log in as admin using SSH and run :

$ sudo systemctl mask sshd.socket --now
$ sudo reboot

To re-enable SSH, run :

$ sudo systemctl unmask sshd.socket
$ sudo reboot