0

I am trying to access storage on a remote server from a remote Linux machine within jupyter notebook using pysftp But I am getting an error "No Hostkey for host found"

Can anyone suggest solution or a better alternative?

I was trying this code

import pysftp

with pysftp.Connection(host = Hostname, username= username, password= password) as sftp:
    print("Connection Successful")
    

Error SSHException: No hostkey for host ****** found.

  • Have you already connected to the host machine? if not, try connecting using ssh in your terminal. Next, I had better experiences with paramiko. pysftp is basically a wrapper around paramiko, but it seems quite abandoned at the moment (the last version they mention on the readthedocs is python 3.4). – lcdumort Sep 09 '22 at 14:48

0 Answers0