Proper way to disable ssh-agent (snap)?

Hi, I would disable ssh on my system.
I expected to have sshd.service as /etc/systemd/system/sshd.service, but instead is located as /snap/core22/617/etc/systemd/system/sshd.service
and so, systemctl stop/disable sshd.service doesn’t work.

So, what to do?

Kind regards.

Google is your friend.
sudo snap set system service.ssh.disable=true

2 Likes

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.