Skip to content

v3.0.0

Choose a tag to compare

@soulteary soulteary released this 27 Aug 06:40
· 234 commits to main since this release

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 -legacy option 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 ~/.ssh directory to
    ~/.ssh/config;
  • directory scanning requires -legacy;
  • -lossless remains as a deprecated no-op compatibility alias while
    lossless conversion becomes the default;
  • the Go module and import paths move from /v2 to /v3;
  • the minimum supported Go version increases to Go 1.27;
  • Linux PowerPC release archives move from big-endian ppc64 to
    little-endian ppc64le; v3 no longer publishes a ppc64 archive.

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