Skip to content

Issue setting up AsyncSSH SFTP server ... #756

Closed Answered by ronf
michealroberts asked this question in Q&A
Discussion options

You must be logged in to vote

The sudden connection close without returning an error back to the client suggests some kind of uncaught Python exception on the task that's accepting a new SSH connection.

One thing that jumps out at me is your authorized_client_keys argument. You appear to be passing in a dictionary, but AsyncSSH is expecting a list/sequence of filenames to load keys from or an SSHAuthorizedKeys object which you previously read keys into using import_authorized_keys() or read_authorized_keys().

Note that user information does not appear anywhere inside these key files. The expectation is that you will load the appropriate keys from within the begin_auth() callback if you need to support multiple sets of…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by michealroberts
Comment options

You must be logged in to vote
1 reply
@michealroberts
Comment options

Comment options

You must be logged in to vote
1 reply
@ronf
Comment options

ronf Jun 10, 2025
Maintainer

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants