Skip to content

Async SSH sftp returning error 0x00000010 #587

@rgutierrezarana

Description

@rgutierrezarana

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`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions