Repository navigation
·
4 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Highlights
SSH credential verification replaces interactive SSH login (#503)
Network Doctor removes the previous interactive SSH login form and askpass handoff, replacing them with a dedicated SSH credential check in both the TUI (S) and the CLI (netdoc -verify-ssh). The check confirms whether a target accepts a credential without opening a shell, session, or forwarding.
Host-key trust and credential protection
- OpenSSH decides host-key trust:
netdocrelies on your installed OpenSSH client for host-key validation and does not readknown_hostsfiles itself. - Same-invocation identity pinning: Method discovery and credential verification run in the same invocation. The credential connection pins the discovered host-and-port endpoint, subject key SHA-256 fingerprint, negotiated algorithm, and (for host certificates) key ID, serial number, and CA fingerprint.
- Fail-closed refusal with zero credentials sent: Unknown, changed, or mismatched host keys abort before any credential is sent, and unknown host-key fingerprints are shown in the TUI. Revoked host keys (
RevokedHostKeys) are refused and classified ashost_key_revoked. - Single-credential check: Discovery without
-verify-authlists offered authentication methods and sends no credential. Verification sends at most one credential. - Bounded helper cleanup: OpenSSH helper processes run in isolated process groups with bounded post-reap
SIGKILLretries (up to 100 ms) and a bounded route-read wait (up to 1 s) so cancelled helpers are cleaned up promptly.
CLI and TUI behavior changes
- New SSH verification flags:
-verify-ssh,-verify-auth password|key|agent,-verify-key,-verify-agent-key,-verify-user, and-password-stdin(for passwords and encrypted key passphrases; refused with unencrypted keys and with--via). - Stricter
--viabatch routing: Headless--viatransport is restricted to configurations statically classified as direct routes. Proxied, unknown, orMatch execroutes fall back to interactive handling on a terminal and fail when headless. - Profile batch timeouts: Timed-out components in
--profileruns are recorded as failed while sibling components still complete.
OpenSSH compatibility
- Supports Ubuntu 26.04's OpenSSH 10.2p1 vendor banner format (
OpenSSH_10.2p1 Ubuntu-...). - Supports Alpine OpenSSH 10.6p2 builds compiled without GSSAPI (
Unsupported query "kex-gss"). - Handles
RevokedHostKeysrefusals and follows the installed OpenSSH client's own host-key algorithm policy (including ML-DSA where supported by OpenSSH).
Newer stable release notifications (#511)
- CLI check:
netdoc --update-check(with optional--json) makes a single unauthenticatedGETrequest to the GitHub latest-release endpoint with no query string, body, credential, or installed-version user agent. GitHub still receives the originating public IP address (or proxy address), as with any HTTPS request. - TUI and desktop window notices: The interactive TUI and the optional desktop window (
contrib/gui, which now requires Rust 1.95 or newer) check passively on launch and show a notice when a newer stable release is available, with per-release dismissal in the GUI. - Caching and opt-outs: Successful answers are cached for 24 hours. Opt out with
--no-update-check,NETDOC_NO_UPDATE_CHECK=1,--no-reference-egress, or the desktop window's Settings toggle. Development and prerelease builds make no update requests.
Important limitations
- Pre-auth login banners: Servers that send an SSH
SSH2_MSG_USERAUTH_BANNERbefore authentication fail closed astransport_failure. - Host certificate constraints: OpenSSH checks certificate principals, validity periods, and CA signatures during the discovery probe; the subsequent Go credential connection pins the certificate's key ID, serial number, CA fingerprint, subject key fingerprint, and algorithm without re-checking expiry, principals, or CA signature itself.
none-accepting servers: Servers that accept SSH"none"authentication hold the discovery probe until its 20-second timeout and fail closed astransport_failure.- Config parsing and process-group escapes: OpenSSH evaluates
Match execdirectives during configuration parsing (ssh -G), and subprocesses that start a new session (setsid) or process group (set -m) can escape process-group cleanup. - Unsupported verifier platforms and CI coverage: SSH credential verification and OpenSSH configuration reads are refused on Windows and FreeBSD. Linux
amd64OpenSSH integration is validated in CI; macOS OpenSSH builds and Linuxarm64verifier runs are not natively validated in CI.
What's Changed
- Tell users when a newer stable release exists by @heymaikol in #511
- Replace the SSH login form with a credential check by @heymaikol in #503
Full Changelog: v2.2.2...v2.3.0
If Network Doctor saves you time, you can support its development on GitHub Sponsors.