EOFError with keyboard interactive authentication using pysftp
问题 I am trying to download some files from an SFTP server. I use this code for it: keydata = b"""AAAAB3Nza.............CNpvoUP7p""" key = paramiko.RSAKey(data=decodebytes(keydata)) cnopts = pysftp.CnOpts() cnopts.hostkeys.add(host, 'ssh-rsa', key) host = 'sftp.foo.com' username = 'test' password = 'test' with pysftp.Connection(host=host, username=username, password=password, cnopts=cnopts) as sftp: sftp.listdir() ..... But I am getting the following error: Exception raised: Traceback (most