Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

key_passphrase is ignored #5

Open
hwiese-boh opened this issue Oct 19, 2023 · 0 comments
Open

key_passphrase is ignored #5

hwiese-boh opened this issue Oct 19, 2023 · 0 comments

Comments

@hwiese-boh
Copy link

The key-File has a passphrase it will be irgnord at connect function.

Exeption:
Could not establish SSH connection: private key file is encrypted

if self.key is not None:
       self.key = paramiko.RSAKey.from_private_key_file(self.key)

replace by

if self.key is not None:
       if self.key_passphrase is not None:
                self.key = paramiko.RSAKey.from_private_key_file(self.key, self.key_passphrase)
       else
                self.key = paramiko.RSAKey.from_private_key_file(self.key)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant