diff options
| author | Christian Breunig <christian@breunig.cc> | 2025-12-14 18:09:40 +0100 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2025-12-14 18:09:40 +0100 |
| commit | 1a753ab95e68c60660d9cd5c7340b5d22a35fafa (patch) | |
| tree | df6ccf05a7e48dbf9500450d87dacf2345b709d1 /src/migration-scripts | |
| parent | 788d43574f600fda827a0d18e7fd89e783c7b5a7 (diff) | |
| download | vyos-1x-1a753ab95e68c60660d9cd5c7340b5d22a35fafa.tar.gz vyos-1x-1a753ab95e68c60660d9cd5c7340b5d22a35fafa.zip | |
ssh: T8090: add support for config test mode (sshd -t)
Add a safety-net for development to check if the rendered sshd(8) configuration
can be applied at all. If it can't be applied - throw an error.
From https://linux.die.net/man/8/sshd:
-t Test mode. Only check the validity of the configuration file and sanity
of the keys. This is useful for updating sshd reliably as configuration
options may change.
Explicitly forcing a broken config now results in:
vyos@vyos# commit
[ service ssh ]
Unexpected error with SSH configuration! /run/sshd/sshd_config line 21:
X11DisplayOffset integer value invalid.
[[service ssh]] failed
Commit failed
Diffstat (limited to 'src/migration-scripts')
0 files changed, 0 insertions, 0 deletions
