Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Kylin100 SSH Bridge

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.

Requirements

  • 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

Usage

  1. Start the Linux VM and make sure sshd is active.
  2. Open VM SSH Bridge.
  3. Press Scan or enter the guest address manually.
  4. Set the guest and Android ports, then press Start bridge.
  5. Use the LAN endpoint shown by the app.

For example:

ssh -p 2222 kylin@10.42.27.17

OpenSSH 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.

Guest Discovery

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.

Status And Alerts

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.

Build

Install Android SDK Platform 35 and Build Tools 36.0.0, then point local.properties at the SDK:

sdk.dir=/path/to/android-sdk

Use JDK 17 or newer and run:

./gradlew testDebugUnitTest lintDebug assembleDebug

The APK is written to:

app/build/outputs/apk/debug/app-debug.apk

Security

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.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages