ssh icon indicating copy to clipboard operation
ssh copied to clipboard

PasswordCallback should give more errors than "permision denied"

Open umialpha opened this issue 3 years ago • 2 comments

In our ssh server, we integrate third-party authn system. When error occurs, it always prompts "permision denied", which confuses our users, meanwhile, we have to inspect server logs to give our users an explaination. So, we need to prompt the details errors to our users, not just "permision denied".

I think we can fix this by adding a callback like "PasswordCallbackWithError" to make it backward compatible. If this thought sounds ok, i can help to this feature.

umialpha avatar Sep 26 '22 08:09 umialpha

backward compatible? please do it

gustavosbarreto avatar Oct 03 '22 21:10 gustavosbarreto

@gustavosbarreto hi, I created a mr, plz take a look :) https://github.com/gliderlabs/ssh/pull/187

umialpha avatar Oct 25 '22 03:10 umialpha