No Description

Andrea Luzzardi 4ccde12af6 Merge pull request #22 from bcicen/fix-gevent-import 4 years ago
bin d013f2e04a client: expose run command 6 years ago
examples 18313d1e09 Fixed port number 4 years ago
misc 554415fd37 Added screenshots 8 years ago
wssh d013f2e04a client: expose run command 6 years ago
.gitignore b39e9d6c53 Initial commit 8 years ago
LICENSE 87659e023b Add LICENSE 6 years ago 3a63c37801 Fixed 8 years ago fb04eb1198 Updated README file 8 years ago
requirements.txt b39e9d6c53 Initial commit 8 years ago
requirements_server.txt b39e9d6c53 Initial commit 8 years ago 5f3427f9dd Version bump, preparing for pypi submission 8 years ago


wssh is a SSH to WebSockets Bridge that lets you invoke a remote shell using nothing but HTTP.

The client connecting to wssh doesn't need to speak the SSH protocol - rather, the SSH connection is terminated at the bridge level and the pty is wrapper through a thin layer of JSON and sent back to the client.

This means you can implement a WSSH client in just a few lines of code, even for a web browser.


Even though wssh primary purpose is to be used as a library in your applications, it ships with two command line tools: wsshd (the server) and wssh (the client).

$ wsshd 
wsshd/0.1.0 running on
$ wssh aluzzardi@mba -p
Last login: Mon Jul 23 23:20:27 2012 from localhost

Web Interface

wsshd provides a web interface giving you access to a Javascript client

Creating your own server

wsshd is just a simple server implementation to demonstrate the wssh library.

You can actually integrate wssh into your own Python web application in order to provide terminal access. For instance, you may want to provide shell access to clients authenticated through OAuth to a special user account. The client doesn't need to know where the SSH server is located nor its credentials.

An example using the Flask framework is provided in examples/

Creating your own client

Beside the command line tool, wssh comes bundled with both a Python and a Javascript client library for the wssh bridge.

There are examples available in the examples/ directory for both languages.

You can write your own library in another language in just a few lines of code.