From b057a57dec54ed6629dcd3cf4ea7369f759f6dbb Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 22 Mar 2018 12:04:43 +0530 Subject: [PATCH] ssh: Add comment about regenerating SSH keys Closes #1230. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- actions/ssh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/actions/ssh b/actions/ssh index 9b8afac1d..c6bad6b32 100755 --- a/actions/ssh +++ b/actions/ssh @@ -52,7 +52,17 @@ def parse_arguments(): def subcommand_setup(arguments): - """Setup Open SSH server.""" + """Setup Open SSH server. + + Regenerates deleted SSH keys. This is necessary when FreedomBox image is + being used. During the image building process the SSH keys are removed and + start OpenSSH server fails without the keys. + + If the keys already exist, do nothing. This is necessary when a user + installs FreedomBox using an apt package. SSH keys exist and running + reconfigure on the openssh-server package does not regenerate them. + + """ action_utils.dpkg_reconfigure('openssh-server', {})