-1

when I try to connect to a server with async_ssh with the sftp command then I get the following error

from asyncssh import connect
import asyncio



sftp_conn_options = {
    "host": "EXAMPLE HOST",
    "username": "EXAMPLE USER",
    "password": "EXAMPLE PASS",
    "known_hosts": None,
    "port": 22,
}


async def main():
    async with connect(**sftp_conn_options) as conn:
        async with conn.start_sftp_client() as sftp:
            listed_files = await sftp.listdir(".")
            print(listed_files)




if __name__ == "__main__":
    loop = asyncio.get_event_loop()
    loop.run_until_complete(main())

ERROR
raise SFTPBadMessage('Unsupported attribute flags: 0x%08x' %
asyncssh.sftp.SFTPBadMessage: Unsupported attribute flags: 0x00000010

I was expecting the listed files from the server but there is a connection issue I used pysftp to connect and seems that is working IDK what is really happening

0 Answers0