Commit Graph
2 Commits
Author SHA1 Message Date
STRIX edb66effd9 T6 review: suppress orphaned open() timer rejection when sendPacket fails first 2026-09-08 14:48:17 +08:00
STRIX 9346cbb646 T6: user auth (none/publickey/password), session channel, keepalive, SshSession facade
- Auth.ts: SERVICE_REQUEST handshake, none probe, publickey query + signed
  request (sig over string(session_id) || payload-without-signature;
  Ed25519 raw / ECDSA DER->mpint r||s / RSA PKCS1 SHA256/512), password
  fallback; skip-list wait loop (DISCONNECT/IGNORE/UNIMPLEMENTED/DEBUG/
  EXT_INFO/BANNER); msg60 dual meaning handled per phase
- Channel.ts: open/confirm, pty-req/shell/exec/window-change, chunked
  flow-controlled write, WINDOW_ADJUST at half local window, stderr via
  EXTENDED_DATA, exit-status, EOF/CLOSE lifecycle, per-channel promise
  slots (never overlaps transport.waitPacket)
- KeepAlive.ts: keepalive@openssh.com global request every 15s, dead
  after 3 unanswered probes
- SshSession.ts: state machine (IDLE..CLOSED), KEX with TOFU host key
  verify, post-auth dispatcher routes keepalive replies + channel packets,
  server channels/global requests refused, execCommand collects
  stdout/stderr/exitStatus
- Transport.ts: fix stale waitPacket timer rejecting a fresh waiter
  (clear timer on resolve/reject/re-arm) - latent since T3, amplified by
  the T6 auth loop
- DiagPage: username/password inputs + button 10 (connect -> auth ->
  exec 'echo haven-ok && uname -a')
2026-09-08 14:46:41 +08:00