Bug 3230 - Cannot cancel security key user presence check.
Summary: Cannot cancel security key user presence check.
Status: NEW
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh-agent (show other bugs)
Version: 8.4p1
Hardware: Other Linux
: P5 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-13 06:35 AEDT by Jordan Patterson
Modified: 2020-11-13 13:05 AEDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jordan Patterson 2020-11-13 06:35:34 AEDT
I ran ssh to connect to a server, and realized it wasn't the one I wanted.  Clicking cancel in the ssh-askpass dialog closes it, but leaves the ssh command waiting to connect.  In ps, I see the defunct ssh-askpass command and ssh-sk-helper running.

Killing the ssh command still leaves ssh-sk-helper running.  Any new connections using a security key will not get the prompt until I touch the key, which allows the previous ssh-sk-helper instance to finish.  Or I can kill it instead of touching the key.

Would it be possible for the agent to cancel the authentication attempt when the cancel button in the ssh-askpass program is pressed?
Comment 1 Damien Miller 2020-11-13 13:05:12 AEDT
unfortunately, there is no feedback path from the popup back to SSH. Maybe we could add a timeout though to prevent it stalling indefinitely.