crypto icon indicating copy to clipboard operation
crypto copied to clipboard

crypto/ssh: return unexpected msg error when server fails keyboard-interactive auth early

Open samiponkanen opened this issue 1 year ago • 11 comments

Seems the OpenSSH server running on windows fails keyboard-interactive auth this way without sending any prompt to client. In such case the golang ssh client should not retry keyboard-interactive auth when the auth method is wrapped in a RetryableAuthMethod(). Rather the auth method should be immediately marked as tried&failed and the client auth process should move on to next available and acceptable auth method.

Fixes golang/go#67855

samiponkanen avatar Jun 06 '24 09:06 samiponkanen