Repository navigation
Conversation
needs to reliably fail with SSHException, for SSHClient._auth() to detect type class for key_filenames
needs to raise SSHException for wrong type for SSHClient._auth() to detect type class for key_filenames
d4b7eb7 to
18e38b9
Compare
669752d to
9019c9a
Compare
This is due to a bug in Paramiko, see paramiko/paramiko#750 and paramiko/paramiko#1606
|
Is there anything pending for this to be merged? This appears to provide a fix for #1839, which is plaguing me currently. |
|
wonder when could we get this fix merged? I am troubled with an issue caused by this. |
|
I run with the changes suggested in this PR but ti does not work either. Is there any solution to this? |
This is due to a bug in Paramiko, see paramiko/paramiko#750 and paramiko/paramiko#1606 Thanks to @martinschorb for suggesting porting this piece of code over from ElastiCluster's elasticluster/elasticluster@50223b3 Fixes issue #669
|
Any progress on this yet, I am as well stuck at the same issue |
|
This still is an issue. I can't use RSA, it always treats my keys as DSA |
|
For what it's worth, this is fixed in my fork "paramiko-ng" since version 2.6 |
|
+1 for merging this. Using paramiko-ng in the meantime |
|
Hi guys, |
+1 . this worked for me as well. Also, what is the blocker for merging this @ploxiln ? |
|
It needs attention from the maintainer, which I am not. In the meantime, you could possibly use my fork https://github.com/ploxiln/paramiko-ng/ |
|
This issue/PR is milestoned for the next bugfix paramiko release. Timing will depend on @bitprophet's prioritization among all of paramiko, invoke and fabric, within his weekly time allotted to open-source, so a precise timeline/due-date isn't really available. |
| raise Exception("Not implemented in PKey") | ||
|
|
||
| def _read_private_key_file(self, tag, filename, password=None): | ||
| def _read_private_key_file(self, tag, pfx, filename, password=None): |
There was a problem hiding this comment.
Please add the new parameter to the docstring, since even though the method is private it's got the documentation present. Thanks for the patch!
There was a problem hiding this comment.
Suggestion for docstring:
:param str tag: ``"RSA"`` or ``"DSA"``, the tag used to mark the
data block.
+ :param str pfx: expected (prefix of) public key type, e.g. "ssh-rsa".
:param str filename: name of the file to read.|
try this if you cannot wait or upgrade paramiko ssh-keygen -m PEM -p |
needs to raise SSHException for wrong type
for SSHClient._auth() to detect type class for key_filenames
fixes #1590