ecerulm commented on issue #16738: URL: https://github.com/apache/airflow/issues/16738#issuecomment-872059691
> Do the other key types also happily accept "rubbish", or do they except? No, `ecdsa` and `ed25519` will raise exceptions if feed an RSA private key. ``` self._default_pkey_mappings['dsa'].from_private_key(StringIO(private_key), password=passphrase) <paramiko.dsskey.DSSKey object at 0x123a611c0> self._default_pkey_mappings['ecdsa'].from_private_key(StringIO(private_key), password=passphrase) paramiko.ssh_exception.SSHException: 'utf-8' codec can't decode byte 0xb2 in position 1: invalid start byte self._default_pkey_mappings['ed25519'].from_private_key(StringIO(private_key), password=passphrase) paramiko.ssh_exception.SSHException: Invalid key self._default_pkey_mappings['rsa'].from_private_key(StringIO(private_key), password=passphrase) <paramiko.rsakey.RSAKey object at 0x123a61dc0> ``` -- 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]
