Ubuntu - SSH - Disabling sshd
To disable sshd from listening you can stop the socket:
systemctl mask sshd.socket
--now