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
[BUG] - document that password-/passphrase-parameter of paramiko.client.SSHClient.connect also accept bytes #2602
If you're connecting as a client, which SSH server are you connecting to?
No response
If you're using paramiko as part of another tool, which tool/version?
No response
Expected/desired behavior
Hey.
The documentation mentions that paramiko.client.SSHClient.connect takes a str for the passphrase- and password-parameters.
It seems however that it also works with bytes, which makes e.g. sense if the passphrase is some raw byte sequence of unknown encoding taken from a file.
Would be nice if this could be confirmed and added to the documentation.
changed the title [-][BUG] - <title>[/-][+][BUG] - document that `password`-/`passphrase`-parameter of `paramiko.client.SSHClient.connect` also accept `bytes`[/+]on May 6, 2026
Activity
[-][BUG] - <title>[/-][+][BUG] - document that `password`-/`passphrase`-parameter of `paramiko.client.SSHClient.connect` also accept `bytes`[/+]