AsyncSSH: Asynchronous SSHv2 client and server library
AsyncSSH is a Python package which provides an asynchronous client and server implementation of the SSHv2 protocol on top of the Python 3.4+ asyncio framework.
import asyncio, asyncssh, sys async def run_client(): async with asyncssh.connect('localhost') as conn: result = await conn.run('echo "Hello!"', check=True) print(result.stdout, end='') try: asyncio.get_event_loop().run_until_complete(run_client()) except (OSError, asyncssh.Error) as exc: sys.exit('SSH connection failed: ' + str(exc))
Check out the examples to get started!
This package is released under the following terms:
Copyright (c) 2013-2017 by Ron Frederick <email@example.com>. All rights reserved.
This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution and is available at:
For more information about this license, please see the Eclipse Public License FAQ.
To use asyncssh, you need the following:
Install AsyncSSH by running:
pip install asyncssh
There are some optional modules you can install to enable additional functionality:
AsyncSSH defines the following optional PyPI extra packages to make it easy to install any or all of these dependencies:
For example, to install bcrypt, gssapi, and libnacl on UNIX, you can run:
pip install 'asyncssh[bcrypt,gssapi,libnacl]'
To install bcrypt, libnacl, and pypiwin32 on Windows, you can run:
pip install 'asyncssh[bcrypt,libnacl,pypiwin32]'
Note that you will still need to manually install the libsodium library listed above for libnacl to work correctly and/or libnettle for UMAC support. Unfortunately, since libsodium and libnettle are not Python packages, they cannot be directly installed using pip.
If you would like to install the development branch of asyncssh directly from Github, you can use the following command to do this:
pip install git+https://github.com/ronf/asyncssh@develop
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|asyncssh-1.10.1-py3.5.egg (517.6 kB) Copy SHA256 Checksum SHA256||3.5||Egg||May 20, 2017|
|asyncssh-1.10.1.tar.gz (260.0 kB) Copy SHA256 Checksum SHA256||–||Source||May 20, 2017|