[GH-ISSUE #28] Add more graceful response if successful challenge-response but the challenger quit the session #6

Closed
opened 2026-02-28 01:16:48 +03:00 by kerem · 1 comment
Owner

Originally created by @therealpaulgg on GitHub (Feb 27, 2024).
Original GitHub issue: https://github.com/therealpaulgg/ssh-sync/issues/28

Example of this behavior:

Client starts challenge, and quits (ctrl+c)

On other machine this happens:

ssh-sync challenge-response
Please enter the challenge phrase: stranger-enzyme-buckshot
failed to parse PEM encoded key: failed to decode PEM data

Expected behavior would be that the challenge should clean itself up when the challenger quits their session, and when the challenge response occurs it should say invalid challenge.

ssh-sync challenge-response
Please enter the challenge phrase: stranger-enzyme-buckshot
error from server: Invalid challenge response
Originally created by @therealpaulgg on GitHub (Feb 27, 2024). Original GitHub issue: https://github.com/therealpaulgg/ssh-sync/issues/28 Example of this behavior: Client starts challenge, and quits (ctrl+c) On other machine this happens: ``` ssh-sync challenge-response Please enter the challenge phrase: stranger-enzyme-buckshot failed to parse PEM encoded key: failed to decode PEM data ``` Expected behavior would be that the challenge should clean itself up when the challenger quits their session, and when the challenge response occurs it should say invalid challenge. ``` ssh-sync challenge-response Please enter the challenge phrase: stranger-enzyme-buckshot error from server: Invalid challenge response ```
kerem closed this issue 2026-02-28 01:16:48 +03:00
Author
Owner

@therealpaulgg commented on GitHub (Mar 21, 2024):

This is fixed in this pull request. https://github.com/therealpaulgg/ssh-sync-server/pull/17

<!-- gh-comment-id:2011202290 --> @therealpaulgg commented on GitHub (Mar 21, 2024): This is fixed in this pull request. https://github.com/therealpaulgg/ssh-sync-server/pull/17
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ssh-sync#6
No description provided.