sudo systemctl stop ssh
To prevent a service from starting manually, use the mask subcommand.
sudo systemctl mask ssh
NOTE: Masked services cannot be started with systemctl start command until it is unmasked.
sudo systemctl unmask ssh