I am writing a program using pysftp, and it wants to verify the SSH host Key against C:\\Users\\JohnCalvin\\.ssh\\known_hosts.
C:\\Users\\JohnCalvin\\.ssh\\known_hosts
Using PuTTY, the terminal
If You try to connect by pysftp to "normal" FTP You have to set hostkey to None.
import pysftp cnopts = pysftp.CnOpts() cnopts.hostkeys = None with pysftp.Connection(host='****',username='****',password='***',port=22,cnopts=cnopts) as sftp: print('DO SOMETHING')