Thursday, May 30, 2019

paramiko does not automatically add unknown hosts #11 (Solved)


paramiko SSH connects Error. (Resolved)



usr/lib/python2.7/site-packages/paramiko/client.py:580: UserWarning: Unknown ssh-rsa host key for 10.20.240.13: 98deaed43de39a61905a6ff514d0d2f8
  (key.get_name(), hostname, hexlify(key.get_fingerprint())))

2 comments:

  1. You have to use:

    ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())

    ReplyDelete
  2. Usually I never comment on blogs but your article is so convincing that I never stop myself to say something about it. Facebook bellen nederland

    ReplyDelete

Wireless Security Configuration: Protect Your Network Now!

Introduction: In today’s connected world, wireless networks are as common as smartphones, and they’re often the gateway to our personal, pr...