1

I tried to connect my server using pysftp. But getting this error No hostkey for host 192.168.50.35 found:

*.py

import pysftp
srv = pysftp.Connection(host='192.168.50.35',username='myname',password='mypassword')
srv.close()

How can i resolve this?

KbiR
  • 4,047
  • 6
  • 37
  • 103
  • Maybe one of the answer in https://stackoverflow.com/questions/38939454/verify-host-key-with-pysftp maybe of use? Also the ip does not respond to my ping. – pinegulf Feb 08 '18 at 06:56
  • @pinegulf Oh, really? Doesn't it? No surprise for a 192.168.* IP address. – glglgl Feb 08 '18 at 08:28
  • @glglgl, Its an example, i tried with server IP but result was same. – KbiR Feb 08 '18 at 08:33

0 Answers0