Feature #11118
closedBackup and restore SSH host key(s)
0%
Description
It would be nice to backup the SSH host keys (public and private) from /etc/ssh and restore them if they are in the configuration. Could be optional, but seems like something we'd want to do by default.
Generally speaking, the host keys should follow the config, as if it changes (reinstall, etc) then clients would fail to recognize the host as the same after it's restored, which seems counter-intuitive.
Alternately, we could have a GUI for this (perhaps on system_advanced_admin.php or split the SSH options off to their own page) to manage the keys, which would include them in the config and also give the user an opportunity to easily regenerate them if they want. That may be overkill, however, as it's rarely a necessary step.
Related issues
Updated by Viktor Gurov almost 3 years ago
Updated by Jim Pingle almost 3 years ago
- Status changed from New to Pull Request Review
- Assignee set to Viktor Gurov
- Target version changed from CE-Next to 2.6.0
- Plus Target Version set to 22.01
Updated by Viktor Gurov almost 3 years ago
Updated by Viktor Gurov almost 3 years ago
- Status changed from Pull Request Review to Feedback
Merged
Updated by Jim Pingle almost 3 years ago
- Subject changed from Backup and Restore SSH Host Key(s) to Backup and restore SSH host key(s)
Updating subject for release notes.
Updated by Danilo Zrenjanin almost 3 years ago
- Status changed from Feedback to Resolved
Tested against today's release.
It works as expected.
Ticket resolved.
Updated by Viktor Gurov almost 3 years ago
- Related to Bug #12637: Incorrect SSH key permission after restore added