Easy SSH tunneling with FRP - One command setup for Google Colab and remote servers
Project description
๐ FRP Tunnel - SSH Access Made Easy
Connect to Google Colab or any remote server via SSH in 30 seconds. No complex setup needed!
๐ฏ What This Does
- Problem: Can't SSH into Google Colab or access remote servers behind firewalls
- Solution: Creates a secure tunnel so you can SSH from anywhere
- Result: Use your favorite tools (VS Code, file transfer, etc.) with remote servers
๐๏ธ How It Works
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ Local Client โ โ GCP Server โ โ Google Colab โ
โ (Any Platform) โ โ (frps:7000) โ โ (frpc+SSH) โ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ โ โ
โ SSH -p 6001-6010 โ โ
โโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโ
โ
FRP Tunnel Forwarding
6001-6010 โ Target:22
โก Quick Start (3 Steps)
Step 1: Install
pip install frp-tunnel
Step 2: Set Up Server (One-time)
# On your VPS/cloud server
frp-tunnel setup
Follow the prompts - it takes 30 seconds
Step 3: Connect from Anywhere
# Google Colab (paste in notebook)
!pip install frp-tunnel && frp-tunnel colab --server YOUR_SERVER_IP --token YOUR_TOKEN
# Your computer
frp-tunnel client --server YOUR_SERVER_IP --token YOUR_TOKEN
# Then SSH normally
ssh -p 6001 colab@YOUR_SERVER_IP
๐ง Real-World Examples
Example 1: Access Google Colab Files
# In Colab notebook
!pip install frp-tunnel && frp-tunnel colab --server 34.123.45.67 --token abc123
# On your computer
ssh -p 6001 colab@34.123.45.67
# Now you can browse files, upload/download, use git, etc.
Example 2: VS Code Remote Development
- Set up tunnel (steps above)
- In VS Code: Install "Remote-SSH" extension
- Connect to
colab@YOUR_SERVER_IP:6001 - Code directly in Colab with full VS Code features!
Example 3: Multiple Connections
# Colab 1
frp-tunnel colab --server YOUR_IP --token YOUR_TOKEN --port 6001
# Colab 2
frp-tunnel colab --server YOUR_IP --token YOUR_TOKEN --port 6002
# Your laptop
frp-tunnel client --server YOUR_IP --token YOUR_TOKEN --port 6003
๐ ๏ธ Troubleshooting (Common Issues)
"Connection refused"
# Check if server is running
ssh YOUR_SERVER_IP "ps aux | grep frps"
"Permission denied"
# Make sure you're using the right port
ssh -p 6001 colab@YOUR_SERVER_IP # Not port 22!
"Token mismatch"
# Get the token from your server
ssh YOUR_SERVER_IP "cat ~/data/frp/frps.ini | grep token"
๐ What You Need
- Server: Any Linux VPS (Google Cloud, AWS, DigitalOcean, etc.)
- Ports: Open ports 6001-6010 and 7000 on your server
- Client: Any computer with SSH (Windows/Mac/Linux)
Quick Server Setup (GCP/AWS)
# Open firewall ports
gcloud compute firewall-rules create frp-tunnel --allow tcp:6001-6010,tcp:7000
# Or for AWS
aws ec2 authorize-security-group-ingress --group-id sg-xxxxx --protocol tcp --port 6001-6010 --cidr 0.0.0.0/0
๐ That's It!
No complex configuration files, no networking knowledge needed. Just install, run, and connect!
Need help? Open an issue - we respond quickly!
โญ Star this repo if it saved you time!
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 frp_tunnel-1.0.6.tar.gz.
File metadata
- Download URL: frp_tunnel-1.0.6.tar.gz
- Upload date:
- Size: 44.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0b82765695a145008663863030d7239f12122d1ea27823bbde2588604883772
|
|
| MD5 |
ef31cfd912e12886f23c13af34ec853b
|
|
| BLAKE2b-256 |
798964cf1cd933fd4f998f109865b6210e96d61fd45a043874a9a427767ac8bc
|
File details
Details for the file frp_tunnel-1.0.6-py3-none-any.whl.
File metadata
- Download URL: frp_tunnel-1.0.6-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b70a9ddfcd9b26ebac3830a1441ba6597c71ecdde93fb40a1e0a1d6d56d12752
|
|
| MD5 |
6d50c1984a37e5f0fe00fd2712943b4f
|
|
| BLAKE2b-256 |
686e4bb7710361973a95351c1440c4dc0c8a6c1a47b44a70abab164df80563b9
|