ashb commented on issue #16738:
URL: https://github.com/apache/airflow/issues/16738#issuecomment-872058448
Having to specify the key type is "duplication" for most of the cases.
I think we should do two things:
1. Move DSA to the end, so it is tried last (doesn't solve the problem, but
it is just so rarely used it shouldn't be first)
2. Try out the key by calling `ssh_sign_data`
```python
try:
key = pkey_type.from_private_key(StringIO(private_key),
password=passphrase)
# Test the key out
key.sign_ssh_data(b'')
return key
except (paramiko.ssh_exception.SSHException, ValueError):
continue
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]