Reverse-ssh-manager
==================
Reverse-ssh-manager allows to manage reverse ssh connections through a web
application.
It also provide a Dockerfile to easily run Reverse-ssh-manager in a docker
container.
Install
-------
You can install `reverse-ssh-manager` in a virtualenv (with `virtualenvwrapper`
and `pip`)::
$ mkvirtualenv reverse-ssh-manager
(reverse-ssh-manager) $ pip install reverse-ssh-manager
Or if you want to contribute some patches to `reverse-ssh-manager`::
$ git clone git@github.com:bbinet/reverse-ssh-manager.git
$ cd reverse-ssh-manager/
$ mkvirtualenv reverse-ssh-manager
(reverse-ssh-manager) $ python setup.py develop
Then, do the following steps::
(reverse-ssh-manager) $ pip install nodeenv
(reverse-ssh-manager) $ nodeenv -p --prebuilt
(reverse-ssh-manager) $ npm install -g bower gulp
(reverse-ssh-manager) $ npm install
(reverse-ssh-manager) $ bower install
(reverse-ssh-manager) $ gulp
Configure
---------
Create a configuration file that looks like::
$ cat path/to/config.cfg
[bottle]
host = 0.0.0.0
port = 8080
debug = true
Note that the `[bottle]` section is optional, the defaults are::
[bottle]
host = localhost
port = 8888
server = wsgiref
debug = false
Run
---
Run the reverse-ssh-manager server by running the following command::
(reverse-ssh-manager) $ reverse-ssh-manager path/to/config.cfg
Then visit http://localhost:8888/, it should display a web interface to manage
reverse ssh tunnels.
Release
-------
To make a new release, do the following steps::
(reverse-ssh-manager) $ npm install
(reverse-ssh-manager) $ bower install
(reverse-ssh-manager) $ gulp
(reverse-ssh-manager) $ deactivate
$ vi setup.py # bump version
$ git add setup.py
$ git commit -m "bump version to X.X.X"
$ git tag vX.X.X
$ python setup.py sdist bdist_wheel upload
$ git push --tags
Docker
------
Build
~~~~~
To create the image `bbinet/rsm`, execute the following command::
docker build -t bbinet/rsm .
You can now push the new image to the public registry::
docker push bbinet/rsm
Run
~~~
Then, when starting your rsm container, you will want to bind ports `22` and
`80` from the rsm container to a host external port.
You also need to provide a read-only `authorized_keys` file that will be use to
allow some users to create ssh tunnels using their public ssh key.
Note that psutil won't be able to get pids of running ssh connection unless you
specify option `--cap-add SYS_PTRACE` with docker run.
For example:
$ docker pull bbinet/rsm
$ docker run --name rsm \
-v authorized_keys:/config/authorized_keys:ro \
-p 22:22 \
--cap-add SYS_PTRACE \
bbinet/rsm
==================
Reverse-ssh-manager allows to manage reverse ssh connections through a web
application.
It also provide a Dockerfile to easily run Reverse-ssh-manager in a docker
container.
Install
-------
You can install `reverse-ssh-manager` in a virtualenv (with `virtualenvwrapper`
and `pip`)::
$ mkvirtualenv reverse-ssh-manager
(reverse-ssh-manager) $ pip install reverse-ssh-manager
Or if you want to contribute some patches to `reverse-ssh-manager`::
$ git clone git@github.com:bbinet/reverse-ssh-manager.git
$ cd reverse-ssh-manager/
$ mkvirtualenv reverse-ssh-manager
(reverse-ssh-manager) $ python setup.py develop
Then, do the following steps::
(reverse-ssh-manager) $ pip install nodeenv
(reverse-ssh-manager) $ nodeenv -p --prebuilt
(reverse-ssh-manager) $ npm install -g bower gulp
(reverse-ssh-manager) $ npm install
(reverse-ssh-manager) $ bower install
(reverse-ssh-manager) $ gulp
Configure
---------
Create a configuration file that looks like::
$ cat path/to/config.cfg
[bottle]
host = 0.0.0.0
port = 8080
debug = true
Note that the `[bottle]` section is optional, the defaults are::
[bottle]
host = localhost
port = 8888
server = wsgiref
debug = false
Run
---
Run the reverse-ssh-manager server by running the following command::
(reverse-ssh-manager) $ reverse-ssh-manager path/to/config.cfg
Then visit http://localhost:8888/, it should display a web interface to manage
reverse ssh tunnels.
Release
-------
To make a new release, do the following steps::
(reverse-ssh-manager) $ npm install
(reverse-ssh-manager) $ bower install
(reverse-ssh-manager) $ gulp
(reverse-ssh-manager) $ deactivate
$ vi setup.py # bump version
$ git add setup.py
$ git commit -m "bump version to X.X.X"
$ git tag vX.X.X
$ python setup.py sdist bdist_wheel upload
$ git push --tags
Docker
------
Build
~~~~~
To create the image `bbinet/rsm`, execute the following command::
docker build -t bbinet/rsm .
You can now push the new image to the public registry::
docker push bbinet/rsm
Run
~~~
Then, when starting your rsm container, you will want to bind ports `22` and
`80` from the rsm container to a host external port.
You also need to provide a read-only `authorized_keys` file that will be use to
allow some users to create ssh tunnels using their public ssh key.
Note that psutil won't be able to get pids of running ssh connection unless you
specify option `--cap-add SYS_PTRACE` with docker run.
For example:
$ docker pull bbinet/rsm
$ docker run --name rsm \
-v authorized_keys:/config/authorized_keys:ro \
-p 22:22 \
--cap-add SYS_PTRACE \
bbinet/rsm
Metadata
Release files for reverse-ssh-manager 1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| reverse-ssh-manager-1.2.tar.gz | 224.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| reverse_ssh_manager-1.2-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 449.9 kB
Release files / reverse-ssh-manager-1.2.tar.gz
| Download URL | reverse-ssh-manager-1.2.tar.gz |
|---|---|
| Size | 224.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c64f581c3d35c314bbc69fa85ff97e3132dc751f3933f03640d4a76d45995ef1
|
|
BLAKE2b-256 checksum How to use checksums |
0c8cd68cac99fd3771e29a8a993cb5f0c0379259aabc62de27937d2aab215b50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / reverse_ssh_manager-1.2-py2-none-any.whl
| Download URL | reverse_ssh_manager-1.2-py2-none-any.whl |
|---|---|
| Size | 225.3 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
b6d9d2eaf4f0e8518acbbeddf279f714dca6eac5c9c9a38654a5632a8dc41413
|
|
BLAKE2b-256 checksum How to use checksums |
2bf46e5608f00dc2ca671c1a5719ed05b47a5c815d7118957f46b96d89ef66ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for reverse-ssh-manager 1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.