ローカルポート(自分のパソコン内でだけ動いているサービス)をインターネット上で公開できるHTTPS URL に変換するスキルです。tinyfi.sh の SSH トンネル機能を使い、セキュアなリンクを自動生成します。 次のような場合に使用: - 手元で開発中のアプリをインターネット経由でテストしたい - ウェブフック(外部サービスからの自動通知)の動作確認をしたい - ローカルでのみ動作しているサイトに、他のツールからアクセスさせたい 仕組みは簡単です。まずアプリをトンネル経由で公開し、その公開 URL を別のツールに教えるだけ。面倒な登録手続き、API キー、複雑なインストール作業は必要ありません。SSH があれば即座に使用できます。
Expose local ports to the internet as public HTTPS URLs using tinyfi.sh SSH tunnels. Use when you need to expose a locally running app, test webhooks, or give TinyFish access to a site that is only hosted locally — tunnel it first, then point TinyFish to the tunneled URL. No signup, no API key, no installation beyond SSH.
ローカルで動作しているアプリを、SSH トンネリング(遠隔接続技術)を使って、すぐに公開用の HTTPS URL に変えられます。無料で、アカウント不要、SSH 以外にインストールするものはありません。
which ssh && echo "SSH available" || echo "SSH not found — install OpenSSH first"
SSH が利用できない場合は、ユーザーに OpenSSH のインストールを指示してください。
注意: このコマンドでは、ローカルサービスが公開インターネットに露出します。管理画面、デバッグ用エンドポイント(機能の呼び出し地点)、秘密鍵やパスワードなどの認証情報が含まれるサービスのトンネリングは避けてください。
ssh -o StrictHostKeyChecking=accept-new -R 80:localhost:<PORT> tinyfi.sh
<PORT> をアプリが動作しているポート番号に置き換えてください。実行すると、https://<ランダムな文字列>.tinyfi.sh という公開 URL が表示されます。
備考:
StrictHostKeyChecking=accept-newは、初回接続時に tinyfi.sh のホストキー(接続相手の身分証明)を自動的に信頼し、その後の接続でキーが変わったら拒否します。より厳密な確認が必要な場合は、初回使用前にサーバーのフィンガープリント(識別情報)を手動で確認してください。
ランダムな URL ではなく、指定したサブドメインをリクエストできます:
ssh -o StrictHostKeyChecking=accept-new -R myname:80:localhost:<PORT> tinyfi.sh
こうすると https://myname.tinyfi.sh という URL が得られます。
長時間稼働するトンネルの場合、接続がまぎれずに残るようにキープアライブ間隔を追加してください:
ssh -o StrictHostKeyChecking=accept-new -o ServerAliveInterval=60 -R 80:localhost:<PORT> tinyfi.sh
ユーザーのためにトンネルを開始する際:
| フレームワーク / ツール | デフォルトポート |
|---|---|
| Next.js / React / Express | 3000 |
| Vite | 5173 |
| Django | 8000 |
| Flask | 5000 |
| Go (net/http) | 8080 |
| Ruby on Rails | 3000 |
| PHP (組み込みサーバー) | 8000 |
$ARGUMENTS
Create instant public HTTPS URLs for locally running apps via SSH tunneling. Free, no account, no installation beyond SSH.
which ssh && echo "SSH available" || echo "SSH not found — install OpenSSH first"
If SSH is not available, stop and tell the user to install OpenSSH.
Warning: This exposes your local service to the public internet. Do not tunnel admin panels, debug endpoints, or services that expose secrets or credentials.
ssh -o StrictHostKeyChecking=accept-new -R 80:localhost:<PORT> tinyfi.sh
Replace <PORT> with the port your app is running on. The command prints a public https://<random>.tinyfi.sh URL.
Note:
StrictHostKeyChecking=accept-newautomatically trusts the tinyfi.sh host key on first connection and rejects changes on subsequent connections. If you require stricter verification, manually confirm the server fingerprint before first use.
Request a specific subdomain instead of a random one:
ssh -o StrictHostKeyChecking=accept-new -R myname:80:localhost:<PORT> tinyfi.sh
This gives you https://myname.tinyfi.sh.
For long-running tunnels, add a keep-alive interval to prevent disconnection:
ssh -o StrictHostKeyChecking=accept-new -o ServerAliveInterval=60 -R 80:localhost:<PORT> tinyfi.sh
When starting a tunnel for the user:
| 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 |
$ARGUMENTS
原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。