From 4dc7518d679245df7f3559cf1edfaac3ff04b294 Mon Sep 17 00:00:00 2001 From: tkgstrator Date: Tue, 7 Apr 2026 12:45:52 +0000 Subject: [PATCH] =?UTF-8?q?docs(readme):=20SSH=E3=81=AEProxyJump=E8=A8=AD?= =?UTF-8?q?=E5=AE=9A=E6=96=B9=E6=B3=95=E3=81=A8Frida=E6=8E=A5=E7=B6=9A?= =?UTF-8?q?=E6=89=8B=E9=A0=86=E3=82=92=E8=BF=BD=E8=A8=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit macOSを踏み台としたSSH ProxyJumpの具体的な設定例をREADMEに追加し、 Fridaの接続手順をより明確に説明。 これにより、環境構築時の接続経路やトンネル確立手順が分かりやすくなり、 設定ミスの防止や作業効率向上に寄与する。 --- README.md | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9a0ead4..7653193 100644 --- a/README.md +++ b/README.md @@ -93,12 +93,40 @@ cat ~/.ssh/id_ed25519.pub >> ~/.ssh/authorized_keys "remote.localPortHost": "allInterfaces" ``` +### 4. SSH config を設定 + +`~/.ssh/config` に以下を追加して、macOS を踏み台にした ProxyJump を設定する。 + +**エイリアスあり** (macOS ホストを再利用する場合): + +```sshconfig +Host docker-host + HostName host.docker.internal + User + +Host iPhone + HostName <デバイスの LAN IP> + User root + ProxyJump docker-host + LocalForward 27042 127.0.0.1:27042 +``` + +**エイリアスなし** (シンプルに一つで完結): + +```sshconfig +Host iPhone + HostName <デバイスの LAN IP> + User root + ProxyJump @host.docker.internal + LocalForward 27042 127.0.0.1:27042 +``` + ### 接続経路 | 用途 | 方向 | 経路 | |------|------|------| | **SSH** | コンテナ → デバイス | `ssh iPhone` (ProxyJump で macOS を経由) | -| **Frida** | コンテナ → デバイス | SSH の LocalForward で 127.0.0.1:27042 → デバイス:27042 | +| **Frida** | コンテナ → デバイス | `ssh -fN iPhone` でトンネル確立後、`frida -H 127.0.0.1` で接続 | | **mitmproxy** | デバイス → コンテナ | デバイスのプロキシを macOS の LAN IP:9080 に設定 | ## 使い方