Skip to content

[BUG] - document that password-/passphrase-parameter of paramiko.client.SSHClient.connect also accept bytes #2602

Open

Description

@calestyo

Are you using paramiko as a client or server?

Client

What feature(s) aren't working right?

Something else

What version(s) of paramiko are you using?

4.0.0

What version(s) of Python are you using?

3.13.12

What operating system and version are you using?

Debian sid

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.

Cheers,
Chris.

Actual behavior

see above

How to reproduce

No response

Anything else?

No response

Activity

  1. changed the title [-][BUG] - <title>[/-] [+][BUG] - document that `password`-/`passphrase`-parameter of `paramiko.client.SSHClient.connect` also accept `bytes`[/+] on May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions