TinyFish Tunneling Service (tinyfi.sh)
Creates instant public HTTPS URLs for locally running apps via SSH tunneling. Free, no account, no installation beyond SSH.
Pre-flight Check (REQUIRED)
Verify SSH is available (it almost always is):
CODEBLOCK0
Quick Start
Expose a local port to the internet:
CODEBLOCK1
Replace <PORT> with the port your app is running on. The command will print a public https://<random>.tinyfi.sh URL.
Custom Subdomain
Request a specific subdomain instead of a random one:
CODEBLOCK2
This gives you https://myname.tinyfi.sh.
Keep-Alive (Stable Connections)
For long-running tunnels, add a keep-alive interval to prevent disconnection:
CODEBLOCK3
Usage Guidelines
When starting a tunnel for the user:
- 1. Ask which port to expose if not already specified
- Run the SSH command in the background so the agent can continue working
- Report the public URL back to the user once the tunnel is established
- The tunnel stays open as long as the SSH connection is alive
Common Ports
| Framework / Tool | Default Port |
|---|
| Next.js / React / Express | 3000 |
| Vite |
5173 |
| Django | 8000 |
| Flask | 5000 |
| Go (net/http) | 8080 |
| Ruby on Rails | 3000 |
| PHP (built-in) | 8000 |
Rate Limits
- - 5 SSH connections per minute per IP
- 100 HTTP requests per minute per IP
- 50 concurrent connections max
- 48-hour idle timeout
技能名称: 隧道穿透
详细描述:
TinyFish 隧道穿透服务 (tinyfi.sh)
通过 SSH 隧道为本地运行的应用创建即时公共 HTTPS URL。免费,无需注册,除 SSH 外无需额外安装。
前置检查(必需)
确认 SSH 可用(通常都已安装):
bash
which ssh && echo SSH 可用 || echo 未找到 SSH — 请先安装 OpenSSH
快速开始
将本地端口暴露到互联网:
bash
ssh -o StrictHostKeyChecking=accept-new -R 80:localhost:<端口> tinyfi.sh
将 <端口> 替换为你的应用运行的端口。该命令将输出一个公共的 https://<随机>.tinyfi.sh URL。
自定义子域名
请求特定子域名而非随机分配:
bash
ssh -o StrictHostKeyChecking=accept-new -R myname:80:localhost:<端口> tinyfi.sh
这将为你提供 https://myname.tinyfi.sh。
保持连接(稳定连接)
对于长时间运行的隧道,添加保活间隔以防止断开:
bash
ssh -o StrictHostKeyChecking=accept-new -o ServerAliveInterval=60 -R 80:localhost:<端口> tinyfi.sh
使用指南
为用户启动隧道时:
- 1. 询问要暴露的端口(如果尚未指定)
- 在后台运行 SSH 命令,以便代理可以继续工作
- 隧道建立后向用户报告公共 URL
- 只要 SSH 连接保持活动,隧道就会保持打开状态
常见端口
| 框架/工具 | 默认端口 |
|---|
| Next.js / React / Express | 3000 |
| Vite |
5173 |
| Django | 8000 |
| Flask | 5000 |
| Go (net/http) | 8080 |
| Ruby on Rails | 3000 |
| PHP (内置服务器) | 8000 |
速率限制
- - 每个 IP 每分钟 5 个 SSH 连接
- 每个 IP 每分钟 100 个 HTTP 请求
- 最大 50 个并发连接
- 48 小时空闲超时