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

Remove error message for PasswordRequiredException on SSH certificate #242

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

agarstang
Copy link

Issue

PasswordRequiredException was displaying even if a certificate was correctly loaded and de-encrypted in the SSH Agent,

Scenario: If you are using an ssh config file to configure hosts along with the ssh-agent, you should not need to explicitly pass a password for your certificate.

Fix

I removed the catch as I expect paramiko.SSHException should gracefully handle any agent misconfiguration and paramiko's logging should make the issue clear.

The alternative would be to lower the log level for this message but I would expect this to be noisy for anyone in the above scenario.

PasswordRequiredException was displaying even an a certificate was loaded and de-encrypted in the SSH Agent
@pahaz pahaz added the wontfix label May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants