Cloudflare Tunnel for open-ssh and code-server
Project description
ssh linux server creation and tunneling through cloudflare tunnels
- custom ssh and cloudflare tunneling
- remote code-server tunneling
Server dependencies: - python>=3.5 - pip - python-apt - make(optional instead of pip)
Client dependencies: - ssh - Cloudflared https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/installation
Installation
- [pip](pip)
- [source](source)
pip
pip install CFsshTunnel
Uninstall
pip uninstall CFsshTunnel
source
git clone https://github.com/ThePilot916/CFsshTunnel.git
cd ./CFsshTunnel
make build
make pip-install
Uninstall
sudo make clean make clean
Launching
- [ssh-cloudflare-tunnel](ssh-cloudflare-tunnel)
- [code-server](code-server)
ssh-cloudflare-tunnel
using make
sudo make launch_server
python source/notebooks
import CFsshTunnel
#Run either with all default parameters or pass ssh/cloudflare config as required
_, hostname, user = CFsshTunnel.CFsshTunnel()
Code-Server
server
from CFsshTunnel.code_server.code_server import launch_codeserver
#cloudflare config and port designation can be specified as required
launch_codeserver(hostname=hostname, user=user)
client
step 1
$ ssh -N -L <client_port>:127.0.0.1:<server_port> <user>@<hostname> &
step 2 Open http://localhost:<client_port> on any ssh client browser and enjoy!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
CFsshTunnel-0.1.9.tar.gz
(7.3 kB
view hashes)
Built Distribution
Close
Hashes for CFsshTunnel-0.1.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fcc715b55b3000bbe64cee978dffebf0286ac13398b7c2018a4f7c92137b047 |
|
MD5 | 37d4f3b9d9484c8135270730369c7dbc |
|
BLAKE2b-256 | f842b96583ab7721eeba62434c0fe795cfde4dcce8bc29b4b8f4fe98a22954ee |