Je continue à recevoir les avertissements de dépréciation suivants lorsque je fais des connexions SSH simples:
2019-03-04 02:21:14 [transport] INFO : Connected (version 2.0, client OpenSSH_7.4)
/usr/local/lib/python2.7/site-packages/paramiko/kex_ecdh_nist.py:39:
CryptographyDeprecationWarning: encode_point has been deprecated
on EllipticCurvePublicNumbers and will be removed in a future
version. Please use EllipticCurvePublicKey.public_bytes to obtain
both compressed and uncompressed point encoding.
m.add_string(self.Q_C.public_numbers().encode_point())
/usr/local/lib/python2.7/site-packages/paramiko/kex_ecdh_nist.py:96:
CryptographyDeprecationWarning: Support for unsafe construction of
public numbers from encoded data will be removed in a future version.
Please use EllipticCurvePublicKey.from_encoded_point
self.curve, Q_S_bytes
/usr/local/lib/python2.7/site-packages/paramiko/kex_ecdh_nist.py:111:
CryptographyDeprecationWarning: encode_point has been deprecated on
EllipticCurvePublicNumbers and will be removed in a future version.
Please use EllipticCurvePublicKey.public_bytes to obtain both
compressed and uncompressed point encoding.
hm.add_string(self.Q_C.public_numbers().encode_point())
2019-03-04 02:21:14 [transport] INFO :
Authentication (keyboard-interactive) successful!
Ceci est plus gênant, car le programme fonctionne correctement, des idées sur la façon de se débarrasser de ces messages?
J'utilise Paramiko 2.4.2 avec Python 2.7.9
Cela a déjà été corrigé dans Paramiko 2.5.0:
https://www.paramiko.org/changelog.html#2.5.
https://github.com/paramiko/paramiko/pull/1379
https://github.com/paramiko/paramiko/issues/1369