You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Has this issue been solved? We are running into same issue where we have to use paramiko on a fips enabled kernel. In case not, are there alternate python ssh libraries for this?
this does indeed allow Paramiko to work on FIPS enabled machines. There is a CryptographyDeprecationWarning for ecdsakey.py and kex_ecdh_nist.py. It recommends using EllipticCurvePublicKey instead of EllipticCurvePublicNumbers.
I'm using netmiko for network management and netmiko has paramiko as a dependency. Adding this to the top of my code after my imports allows SHA-256 vs. MD5 to be used for use with the ssh transport.
#Patch to allow paramiko to use SHA-256 vs MD5
import paramiko
from hashlib import sha256
paramiko.PKey.get_fingerprint = lambda x: sha256(x.asbytes()).digest()
Hopefully, this can be fixed in a future iteration of paramiko to allow the encryption hash to be selected.
Activity
jan-matejka commentedon Jan 27, 2015
So I guess, exactly what the OP says
Ismael commentedon Nov 10, 2017
This pull request fixes this: #1103
To install run:
mayli commentedon Apr 24, 2018
Any update on this PR?
dsethi commentedon Apr 21, 2020
Has this issue been solved? We are running into same issue where we have to use paramiko on a fips enabled kernel. In case not, are there alternate python ssh libraries for this?
thukk commentedon May 20, 2020
this does indeed allow Paramiko to work on FIPS enabled machines. There is a CryptographyDeprecationWarning for ecdsakey.py and kex_ecdh_nist.py. It recommends using EllipticCurvePublicKey instead of EllipticCurvePublicNumbers.
dsethi commentedon May 20, 2020
Thanks for that Thukk. Since the PR is not merged/failed some tests initially, did it lead to any issues? How long have you run this change?
thukk commentedon May 20, 2020
Thus far, no. Set it up today. I am using Paramiko as a part of Fabric. My Fabric scripts are now working (aside from the warning I mentioned before).
avidspartan1 commentedon Jul 10, 2020
We've found the paramiko transport to work well for us, except when it comes to FIPS. Would love to see this PR accepted.
subodh2691 commentedon Jul 18, 2020
I am facing similar issue and cloning of repo outside org is blocked in my machine. When this change will be going to latest version of paramiko?
naman0805 commentedon Oct 21, 2020
Any updates on whether this change ( #1103 ) is going to get merged in the master branch?
If Yes, do we have any tentative timelines?
neutronscott commentedon Nov 20, 2020
While waiting on that PR I guess I can do this with
pkey.pyto use paramiko if anyone else needs it:14 remaining items
bkyarnell commentedon Oct 18, 2024
@storyG
Thanks for that!
I'm using netmiko for network management and netmiko has paramiko as a dependency. Adding this to the top of my code after my imports allows SHA-256 vs. MD5 to be used for use with the ssh transport.
Hopefully, this can be fixed in a future iteration of paramiko to allow the encryption hash to be selected.
Patch paramiko to work with FIPs
don't use paramiko's get_fingerprint (md5)
Update git submodules
Patch paramiko to work with FIPs
see-quick commentedon Aug 20, 2026
Hello, guys any reason to not adopt a solution using
SHA-256instead ofMD5?^^ @bitprophet
fix: add FIPS-compatible workaround for paramiko MD5 fingerprint issue
fix: add FIPS-compatible workaround for paramiko MD5 fingerprint issue
fix: add FIPS-compatible workaround for paramiko MD5 fingerprint issue
fix: add FIPS-compatible workaround for paramiko MD5 fingerprint issue
fix: add FIPS-compatible workaround for paramiko MD5 fingerprint issue
fix: add FIPS-compatible workaround for paramiko MD5 fingerprint issue
fix: FIPS-compatible workaround for paramiko MD5 fingerprint issue (#…
fix: FIPS-compatible workaround for paramiko MD5 fingerprint issue (R…
fix: FIPS-compatible workaround for paramiko MD5 fingerprint issue (R…