To stop and disable the SSH server, proceed as follows: Open a terminal. Become root. Issue the following commands: systemctl stop ssh systemctl disable ssh