Project

General

Profile

Actions

Feature #11118

closed

Backup and restore SSH host key(s)

Added by Jim Pingle over 3 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Very Low
Assignee:
Viktor Gurov
Category:
Backup / Restore
Target version:
Start date:
12/01/2020
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
22.01
Release Notes:

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

Related to Bug #12637: Incorrect SSH key permission after restoreResolvedViktor Gurov

Actions
Actions #3

Updated by Jim Pingle over 2 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
Actions #5

Updated by Viktor Gurov over 2 years ago

  • Status changed from Pull Request Review to Feedback

Merged

Actions #6

Updated by Jim Pingle over 2 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.

Actions #7

Updated by Danilo Zrenjanin over 2 years ago

  • Status changed from Feedback to Resolved

Tested against today's release.

It works as expected.

Ticket resolved.

Actions #8

Updated by Viktor Gurov about 2 years ago

  • Related to Bug #12637: Incorrect SSH key permission after restore added
Actions

Also available in: Atom PDF