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>
- sshfs
$sshfs -p <ssh_port> <user>@hostname>:/path/to/mount /mnt/dir
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file CFsshTunnel-0.2.1.tar.gz.
File metadata
- Download URL: CFsshTunnel-0.2.1.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d66e150688ed6b35460e26ff3ac98dbe1ff64ce4d0701ee8a0ac45289f10536
|
|
| MD5 |
8e02db9915bbf563ef58a546a3cc8aa0
|
|
| BLAKE2b-256 |
92f7dc2aea83e3bbf5c302e7e7965b371c406ad2593c8cec73f77f93303a7765
|
File details
Details for the file CFsshTunnel-0.2.1-py3-none-any.whl.
File metadata
- Download URL: CFsshTunnel-0.2.1-py3-none-any.whl
- Upload date:
- Size: 23.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17cb2e1483e7829b55fbdd7c89c3930a78d09710c00b607275b9cbfe97101ff2
|
|
| MD5 |
534f150c2b269de847e4a4c56e3c427e
|
|
| BLAKE2b-256 |
6ed0565929a843e12a09f42964fc13aaa40e4d3ddfb2c899f77a97414d5200fb
|