2 Commits
Author SHA1 Message Date
Claude e567071ad9 Android: SSH on libdmodemssh through JNI, sshj gone
The SSH client is the same as iOS's and the GUI's now: native-ssh, on
libssh, loaded as libdmodem_ssh_jni.so (NativeSsh.kt). SshLink polls
it on its own thread; its channels carry the shell, commands, the
port forwards (-L, -R, -D) and the forwarded agent's requests. Keys
stay the app's: SSH's wire form (SshWire.kt), OpenSSH's and PEM keys
read through the engine, PuTTY's .ppk read here, all on BouncyCastle.

The engine: commands can forward the agent, a write tells what's still
kept for the server (forwards hold back a fast sender), libssh built
WITH_SERVER (its callbacks for the agent's channels need it), and its
remote listen on port 0 patched to take the port from its own reply.

The unit tests build the JNI library for the host (buildHostSsh) and
run against it: OpenSSH's sshd, puttygen and Apache MINA's server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSV65geuGd6zMt2V6r
2026-11-12 13:46:38 +00:00
Claude 55bd6015da iOS: SSH on libdmodemssh, the apps' own client on libssh
native-ssh is the desktop apps' SSH engine (D-Modem/gui's ssh/), built
here from libssh's and mbedTLS's release tarballs for the host, Android
and Apple's systems.  ios/build-native.sh makes it
DModemSSHNative.xcframework, each arch linked into one object whose only
globals are dmc_ssh_*, so its mbedTLS never meets the engine's.
DModemSSH's SSHShell keeps its API on it (SwiftNIO SSH goes), adding RSA,
keyboard-interactive and private keys; CI runs its tests and the
engine's against a real sshd.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSV65geuGd6zMt2V6r
2026-11-12 13:15:49 +00:00