Cloudflare Tunnel for open-ssh and code-server
Project description
ssh server cloudflare tunnel
- 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 install CFsshTunnel
Uninstall
pip uninstall CFsshTunnel
source
git clone https://github.com/ThePilot916/CFsshTunnel.git
cd ./CFsshTunnel
make dependencies
make install
Uninstall
sudo make clean
make clean
Launching
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()
Note: Ensure to update ~/.ssh/config on the client as displayed on the output after running CFsshTunnel()
code-server
import CFsshTunnel
from CFsshTunnel.code_server.code_server import launch_codeserver
_, hostname, user = CFsshTunnel.CFsshTunnel()
launch_codeserver(hostname=hostname, user=user)
client - setup
Ensure to update ~/.ssh/config on the client as displayed on the output after running CFsshTunnel()
- ssh
$ ssh <user>@<hostname>
- code-server
$ ssh -N -L <client_port>:127.0.0.1:<server_port> <user>@<hostname>
Now open http://localhost:<client_port> on any ssh client browser and enjoy!
Code-snippets from google-colab
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.2.0.tar.gz
(7.9 kB
view hashes)
Built Distribution
Close
Hashes for CFsshTunnel-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d227b17b246d748d5f1ed5b7f39e40fbaaa9c2e0f02bdd1b8338d372975f03cf |
|
MD5 | 3013c6a490887cd37f4b43270bebb0ab |
|
BLAKE2b-256 | 2576f0b108251d498cae5ba7f4a90b65554987d79c66e6046dbcd0f9d477ef67 |