HostOnNet Blog

No handlers could be found for logger paramiko.transport

Looking for Linux Server Admin or WordPress Expert? We can help.

On CentOS 7 server, when i try connect with fabric, i get error

$ fab --show=debug -f test.py uptime
Using fabfile '/home/boby/www/honcpanel/fabric/test.py'
Commands to run: uptime
Parallel tasks now using pool size of 1
[s20n] Executing task 'uptime'
[s20n] run: /bin/bash -l -c "uptime"
No handlers could be found for logger "paramiko.transport"
[s20n] Login password for 'root': 
Stopped.
$

paramiko version installed on my PC was v1.15.3. This is latest version, so i tried installing latest from git.

sudo pip uninstall paramiko
sudo pip install https://github.com/paramiko/paramiko/archive/master.zip

That installed latest developmental version from git.

$ pip list | grep paramiko
paramiko (1.16.0)
$ 

Still i got same error.

This is fixed by editing /etc/ssh/sshd_config file

vi /etc/ssh/sshd_config

Find

MACs [email protected],[email protected],[email protected],hmac-sha2-512,hmac-sha2-256,hmac-ripemd160

Replace with

MACs hmac-sha1,hmac-sha1-96,hmac-md5,[email protected],[email protected],[email protected],hmac-sha2-512,hmac-sha2-256,hmac-ripemd160

The extra string added are

hmac-sha1,hmac-sha1-96,hmac-md5

Now restart sshd

systemctl restart sshd

Posted in CentOS

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.