Asyncssh – Python Asyncio Client/Server Implementation of SSHv2 Protocol
github.com
github.com
The library is already pretty feature-complete, and just last week the latest release added ssh-agent client support. [1]
[0] https://www.reddit.com/r/Python/comments/41zycz/asyncssh_asy...
[1] https://github.com/ronf/asyncssh/blob/master/docs/changes.rs...
I like that is supports all of the modern ciphers (Paramiko, in particular, doesn't). It's also mostly feature-complete. Props to the author, this appears to be the work of a single guy!
I think this can be very useful for establishing reverse SSH connections as well. Instead of having autossh keep track of the SSH session and keep it alive, one can spin up a simple script that starts and persists the connection.
And yet I say this as a creator of an async SMTP server, so I don't think these days it is that big of an issue.
that doesn't mean that it wont get pulled in as a dependency somewhere else.
FWIW, https://pypi.python.org/pypi/parallel-ssh will work with Python2; also does not use threads or processes.