I would like to know if there's a way to ask the local user (logged in via GUI) to confirm/deny any other authentication attempts, such as someone trying to log in via SSH?
The scenario is this, I may want to leave my SSH key on an user's machine to be able to debug or help them should things go wrong, but at the same time I want them to remain in control, so neither I nor someone having stolen my SSH key would be able to log in without at least a confirmation from the user (the user would expect me to tell them beforehand that I would log in, so if that didn't happen they reject the connection).
Is this possible? The machine in question is running Ubuntu 16.10, with the default Unity desktop environment.
sshd, regardingSSHRC. Maybe this could be a way to go.