12c73d7a87d6aac7404e29e65d0accee5c73994a
- session/TerminalSession: kit-free connect orchestrator (CONNECTING -> HOSTKEY_WAIT -> AUTHENTICATING/AUTH_REQUIRED -> READY/CLOSED/ERROR), fresh SshSession per attempt, inline password retry with optional remember+persist, friendly error mapping - session/SessionManager: process-wide session registry with listener notify and active-session tracking - ui/SessionLaunch: SessionDeps assembly (repos + TOFU dialog + crypto envelopes), host-key AlertDialog (save/once/reject), toast/clipboard, quick-connect and host-profile spec builders - pages/Index: bottom Tabs shell (connections/terminal/keys/settings) with AppStorage-driven cross-page tab switching - ui/ConnectionsPage: quick-connect bar, search, LazyForEach host list, long-press context menu (edit/copy/forget-password/delete), FAB + bindContentCover editor, delete/forget confirm dialogs - ui/HostEditSheet: full-screen host editor (label/host/port/user, password/key auth chips, key Select, 8-color tag picker) - ui/TerminalPage: session tab strip + per-state overlays (progress, inline password prompt, error/closed with reconnect) - ui/KeysPage/SettingsPage: stage placeholders (diag entry kept) - ssh/SshSession: optional onClosed callback for transport loss - data/KnownHostRepository: fix missing KnownHostStore import (T8 post-build regression)
Haven for HarmonyOS
Free, open-source SSH client for HarmonyOS — a port of Haven (Android) by GlassHaven.
SSH · VT100/xterm terminal · connection & key management.
Status
MVP (0.1.x) — SSH terminal + connection management:
- Pure TypeScript SSH-2.0 stack (no native libraries)
- KEX:
curve25519-sha256,ecdh-sha2-nistp256, strict-kex - Ciphers:
aes128/256-gcm@openssh.com,aes128/192/256-ctr - MACs:
hmac-sha2-256/512(+ EtM variants) - Auth: password, publickey (
ssh-ed25519,ecdsa-sha2-nistp256,rsa-sha2-256/512) - Host key TOFU verification with SHA256 fingerprints
- KEX:
- VT terminal emulator with 256-color/truecolor, alternate screen, mouse modes, bracketed paste, OSC 52 clipboard, CJK double-width, scrollback
- Connection manager with quick connect (
user@host[:port]), color tags - On-device SSH key management (generate / import / copy public key)
- Keyboard toolbar with sticky Ctrl/Alt and macro snippets
- English + 简体中文
Requires OpenSSH ≥ 7.4 on the server side.
Build
Open in DevEco Studio (API 26+), or:
hvigorw assembleHap
License
This project is a port of Haven (GlassHaven, AGPL-3.0). The SSH protocol stack and terminal emulator are re-implemented in TypeScript following the algorithms and behavior of the original (JSch defaults / libvterm feature set).
See NOTICE.md for attributions.
Languages
Kotlin
88.2%
Rust
4%
TypeScript
3.3%
C
1.6%
Shell
1.3%
Other
1.5%