while establish connection you will get following errors :
Python 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import paramiko >>> ssh = paramiko.SSHClient() >>> ssh.connect('10.10.123.123',username='root',password='xxxxx') No handlers could be found for logger "paramiko.transport" Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.6/site-packages/paramiko/client.py", line 295, in connect t.start_client() File "/usr/lib/python2.6/site-packages/paramiko/transport.py", line 451, in start_client raise e paramiko.SSHException: Incompatible ssh peer (no acceptable kex algorithm) >>> Additional info: Problem is fixed in paramiko 1.15.1 https://github.com/paramiko/paramiko/issues/423
1. First check the Version of openSSH and python .
command to check openSHH version is :
On linux : ssh -v
Command to check paramiko version :
.>>> import paramiko>>> print paramiko.__version__ 1.12.0
2. if your paramiko lib version is lower than 1.15.1 and openshh is higher than 6.7 , you have in problem .
Solution :
1) downgrade the openSHH version to below 6.7 .
or
2) Upgrade the paramiko lib version to above 1.15.1
check your current python version when you upgrade the paramiko lib version .
Any question please comment below .
No comments:
Post a Comment