Kylin100 SSH Bridge is an Android TCP forwarder for reaching an SSH server in a crosvm guest that uses a private NAT/TAP network.
The app listens on a configurable Android TCP port and forwards each client to the selected guest address and port. It does not handle SSH credentials or decrypt SSH traffic.
- Android 8.0 (API 26) or newer
- A crosvm guest reachable from Android
- OpenSSH server running in the guest
- The Android device and SSH client on a mutually reachable network
For the Kylin100 device used during development, the defaults are:
| Setting | Default |
|---|---|
| Guest address | 10.252.36.169 |
| Guest port | 22 |
| Android port | 2222 |
- Start the Linux VM and make sure
sshdis active. - Open VM SSH Bridge.
- Press Scan or enter the guest address manually.
- Set the guest and Android ports, then press Start bridge.
- Use the LAN endpoint shown by the app.
For example:
ssh -p 2222 kylin@10.42.27.17OpenSSH does not accept host:port syntax. Pass the port with -p.
The LAN address is detected from Android's active network and refreshed while the app is open. The listener binds to all Android interfaces permitted to the app.
Discovery only probes IPv4 subnets associated with crosvm, AVF, or TAP network
interfaces. If Android does not expose one of those interfaces, the known
Kylin100 guest range containing 10.252.36.169 is used as the fallback. The
configured LAN subnet is never scanned.
A candidate must return an SSH protocol banner on the configured guest port. The operating system banner is not used as identity. If multiple SSH guests exist in the same TAP subnet, enter the intended address manually.
The foreground notification keeps the listener alive and shows its current endpoint and active connection count. A separate event channel reports:
- bridge ready
- bridge startup or target validation failure
- successful forwarded connection
- target connection failure
- interrupted forwarded connection
An invalid or unreachable target is checked before the Android listener opens. On a fatal startup or target-connect failure, the app closes all bridge sockets and returns to the stopped state. A single interrupted client session is closed and reported while the healthy listener remains available for reconnects.
Install Android SDK Platform 35 and Build Tools 36.0.0, then point
local.properties at the SDK:
sdk.dir=/path/to/android-sdkUse JDK 17 or newer and run:
./gradlew testDebugUnitTest lintDebug assembleDebugThe APK is written to:
app/build/outputs/apk/debug/app-debug.apk
The bridge intentionally exposes the selected Android port to reachable networks. Run it only on trusted networks, keep SSH password or public-key authentication enabled, and stop the bridge when it is not needed.