Repository navigation
v3.0.0
ssh-config v3.0.0
Version 3 changes the default command-line representation to the lossless v3
schema and promotes the source-preserving parser, editor, validator, Include
resolver, and atomic writer as the public Go API.
Highlights
- byte-preserving parsing and reconstruction of unchanged SSH configuration;
- editable directive views without rewriting surrounding lines;
- strict v3 YAML and JSON decoding with deterministic legacy migration;
- OpenSSH argument, Include, validation, and effective-configuration tests;
- atomic destination replacement with permission preservation and symlink
rejection; - an explicit
-legacyoption for consumers that still need the v2 formats.
Breaking changes
- YAML and JSON output use schema v3 by default;
- the no-argument source changes from the
~/.sshdirectory to
~/.ssh/config; - directory scanning requires
-legacy; -losslessremains as a deprecated no-op compatibility alias while
lossless conversion becomes the default;- the Go module and import paths move from
/v2to/v3; - the minimum supported Go version increases to Go 1.27;
- Linux PowerPC release archives move from big-endian
ppc64to
little-endianppc64le; v3 no longer publishes appc64archive.
See Migrating from v2 to v3
for command and API examples.
Verification
The release candidate must pass unit tests, the race detector, vet,
govulncheck, OpenSSH integration tests, a Go module consumer test, a
GoReleaser snapshot, and container smoke checks before the final tag is
published.
This document is also used as the curated GitHub Release body. The full commit
comparison remains available through the link appended by GoReleaser.
Full Changelog: v2.0.0...v3.0.0