Paramiko BadAuthenticationType

BadAuthenticationType at /assets_online/
('Bad authentication type', [u'publickey', u'gssapi-keyex', u'gssapi-with-mic']) (allowed_types=[u'publickey', u'gssapi-keyex', u'gssapi-with-mic'])


paramiko通过 ip,username,password操作远程机器,一直是正常的,突然添加一台新机器时一直报错
然后排查对比,发现sshd配置了密匙登录,允许账户密码登录
PasswordAuthentication no


解决方法:
1, PasswordAuthentication yes
2, paramiko 使用key登录
3, 禁止除用户zhanghb以外其他用户使用口令登录:
Match User *, !foo
    PasswordAuthentication no
解决方法:
1, PasswordAuthentication yes
2, paramiko 使用key登录
3, 禁止除用户zhanghb以外其他用户使用口令登录:
Match User *, !foo
    PasswordAuthentication no

你可能感兴趣的:(Paramiko BadAuthenticationType)