python - paramiko connect() error: wanted object (0x06), got 0x30 -
ssh = paramiko.sshclient() ssh.set_missing_host_key_policy(paramiko.autoaddpolicy()) ssh.connect(node, username=settings['username'], password=settings['password'])
could tell me error means when try ssh paramiko?
traceback (most recent call last):\r\n file "/path/stats.py", line 104, in connect\r\n ssh.connect(node, username=settings['username'], password=settings['password'])\r\n file "/usr/software/lib/python3.2/site-packages/paramiko-1.16.0-py3.2.egg/paramiko/client.py", line 367, in connect\r\n look_for_keys, gss_auth, gss_kex, gss_deleg_creds, gss_host)\r\n file "/usr/software/lib/python3.2/site-packages/paramiko-1.16.0-py3.2.egg/paramiko/client.py", line 558, in _auth\r\n key = pkey_class.from_private_key_file(filename, password)\r\n file "/usr/software/lib/python3.2/site-packages/paramiko-1.16.0-py3.2.egg/paramiko/pkey.py", line 184, in from_private_key_file\r\n key = cls(filename=filename, password=password)\r\n file "/usr/software/lib/python3.2/site-packages/paramiko-1.16.0-py3.2.egg/paramiko/ecdsakey.py", line 49, in __init__\r\n self._from_private_key_file(filename, password)\r\n file "/usr/software/lib/python3.2/site-packages/paramiko-1.16.0-py3.2.egg/paramiko/ecdsakey.py", line 146, in _from_private_key_file\r\n self._decode_key(data)\r\n file "/usr/software/lib/python3.2/site-packages/paramiko-1.16.0-py3.2.egg/paramiko/ecdsakey.py", line 161, in _decode_key\r\n key = signingkey.from_der(data)\r\n file "/usr/software/lib/python3.2/site-packages/ecdsa-0.13-py3.2.egg/ecdsa/keys.py", line 178, in from_der\r\n curve_oid, empty = der.remove_object(curve_oid_str)\r\n file "/usr/software/lib/python3.2/site-packages/ecdsa-0.13-py3.2.egg/ecdsa/der.py", line 82, in remove_object\r\n raise unexpectedder("wanted object (0x06), got 0x%02x" % n)\r\n ecdsa.der.unexpectedder: wanted object (0x06), got 0x30\r\n
while i'm not sure why happening, able work around passing look_for_keys=false
connect()
.
Comments
Post a Comment