You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/07/01 08:48:15 UTC

[GitHub] [airflow] ecerulm edited a comment on issue #16738: SSHHook will not work if `extra.private_key` is a RSA key

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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org