1
ssh = client.SSHClient()

paramiko. util. log_to_file ( 'paramiko.log ') 

ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())

ssh.connect(server,port=22, username=username, password=password, look_for_keys=False)

Executing this script shows below error message

File "C:\Python27\lib\site-packages\paramiko-2.0.1-py2.7.egg\paramiko\client.p y", line 338, in connect t.start_client() File "C:\Python27\lib\site-packages\paramiko-2.0.1-py2.7.egg\paramiko\transpor t.py", line 493, in start_client raise e AttributeError: 'EntryPoint' object has no attribute 'resolve'

Please advice how can i solve this

1 Answer 1

1

Found the problem , downgraded cryptography to an older version https://pypi.python.org/pypi/cryptography/1.2.1#downloads

Sign up to request clarification or add additional context in comments.

1 Comment

This was occurred with Python-3.4 + cryptography-1.5 when I ran testinfra that uses paramiko as the SSH backend. The error disappeared if I downgraded cryptography to 1.4.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.