ecerulm edited a comment on issue #16738:
URL: https://github.com/apache/airflow/issues/16738#issuecomment-872038284


   Yes, I think that could work 
   
   
https://github.com/apache/airflow/blob/a2d6aa07c9de83278eef14a228eb4a02ad43205c/airflow/providers/ssh/hooks/ssh.py#L268
   
   surround that with a `try-except` and a for-loop for all the 
`key_candidates`   and take the first that succeeds. 
   
   Or add a `private_key_type` to extras in the connection and use that 
   
                       key = 
_default_pkey_mappings[private_key_type].from_private_key(StringIO(private_key),
 password=passphrase)
   
   


-- 
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]


Reply via email to