AsyncSSH 2.21.0 released!

2 views
Skip to first unread message

Ron Frederick

unread,
May 3, 2025, 9:50:06 AMMay 3
to asyncssh...@googlegroups.com, asyncss...@googlegroups.com
AsyncSSH version 2.21.0 is now available on Github and PyPI, with some new features and bug fixes. Here’s a list of changes since 2.20.0:

* Added sparse file support for SFTP, allowing file copying which
automatically skips over any "holes" in a source file, transferring
only the data ranges which are actually present.

* Added support for applications to request that session, connection,
or TUN/TAP requests arriving on an SSHServerConnection be forwarded
out some other established SSHClientConnection. Callback methods on
SSHServer which decide how to handle these requests can now return
an SSHClientConnection to set up this tunneling, instead of having
to accept the request and implement their own forwarding logic.

* Further hardened the SSH key exchange process to make AsyncSSH
more strict when accepting messages during key exchange. Thanks
go to Fabian Bäumer and Marcus Brinkmann for identifying potential
issues here.

* Added support for the auth_completed callback in SSHServer to
be either a callable or a coroutine, allowing async operations
to be performed when user authentication completes successfully,
prior to accepting session requests.

* Added support for the sftp_factory config argument be either a
callable or a coroutine, allowing async operations to be performed
when starting up a new SFTP server session.

* Fixed a bug where the exit() method of SFTPServer didn't handle
being declared as a coroutine. Thanks go to C. R. Oldham for
reporting this issue.

* Improved handling of exceptions in connection_lost() callbacks.
Exceptions in connection_lost() will now be reported in the
debug log, but other cleanup code in AsyncSSH will continue,
ignoring those exceptions. Thanks go to Danil Slinchuk for
reporting this issue.

Downloads can be found in the usual place:

Home page: http://asyncssh.readthedocs.io
PyPI: https://pypi.python.org/pypi/asyncssh
GitHub: https://github.com/ronf/asyncssh

Please let me know if you have any questions or problems with this new release.
--
Ron Frederick
ro...@timeheart.net



Reply all
Reply to author
Forward
0 new messages