You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BadAuthenticationType or SSHException when no authentication method needed #1448
That PR adds a call to self._transport.auth_none(username) first thing in the SSHClient, and that's what should detect that no password or publickey is needed. That return in the else clause should be activated for your case:
try:
self._transport.auth_none(username)
exceptBadAuthenticationTypease:
allowed_auth_methods=frozenset(e.allowed_types)
else:
# This server allows logging in with no authreturn
Activity
ploxiln commentedon May 29, 2019
you could try #1106
deed02392 commentedon May 29, 2019
I don't think that is the issue. Otherwise when I tried
password=Noneshouldn't it have just worked?ploxiln commentedon May 29, 2019
no, you would need to install and run with that pull request, which has not been merged
ploxiln commentedon May 29, 2019
... I have merged that PR to my fork a few days ago, just after my latest release though, so you could also try to install from the master branch of my fork as described here: https://github.com/ploxiln/paramiko-ng#installation
deed02392 commentedon May 29, 2019
No I mean, I don't think that PR will address this issue based on the description of it. It does not look relevant, am I mistaken?
ploxiln commentedon May 29, 2019
That PR adds a call to
self._transport.auth_none(username)first thing in the SSHClient, and that's what should detect that no password or publickey is needed. That return in the else clause should be activated for your case:deed02392 commentedon May 29, 2019
Ah I see now. This seems like it should be merged in this repo. Is this repo dead?
somurzakov commentedon Oct 5, 2023
@deed02392
Try this very simple workaround with
auth_strategy=NoneAuth(''): works perfectly fine for me