On my home PC, I set up sshd as an SFTP server so I could share files with my friends. However, when I attempt to reboot and someone has an SFTP client connected, I get the following message:$ rebootUser johndoe is logged in on sshd.Please retry operation after closing inhibitors and logging out other users.Alternatively, ignore inhibitors and users with 'systemctl reboot -i'.Although I could do sudo reboot or reboot -i as instructed, this will ignore all inhibitors.Is it possible to ignore only ssh/sftp logins, or disable ssh from creating the inhibitor in the first place?
Ignore sshd inhibitors when rebooting
systemd;sshd;reboot