From d6cc0b35bc125dad8ee6838f766d044c655715d9 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 27 Mar 2020 17:03:19 +0200 Subject: [PATCH] ssh: Run keygen on post-install --- extra/openssh/checksums | 2 +- extra/openssh/files/sshd.run | 1 - extra/openssh/post-install | 3 +++ 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100755 extra/openssh/post-install diff --git a/extra/openssh/checksums b/extra/openssh/checksums index 1128da49..dafe5a6a 100644 --- a/extra/openssh/checksums +++ b/extra/openssh/checksums @@ -1,2 +1,2 @@ 43925151e6cf6cee1450190c0e9af4dc36b41c12737619edff8bcebdff64e671 openssh-8.2p1.tar.gz -5d32a817344ac444424063d75e49afd95d7eb76d972ef5c5cfad355c8e8b1ff1 sshd.run +cd9a79943f8f6c05373bd70afc22a230f3c5e6e6200b9115f598e180dacefb54 sshd.run diff --git a/extra/openssh/files/sshd.run b/extra/openssh/files/sshd.run index 04f7adbb..6645902b 100644 --- a/extra/openssh/files/sshd.run +++ b/extra/openssh/files/sshd.run @@ -1,3 +1,2 @@ #!/bin/sh -ssh-keygen -A >/dev/null 2>&1 # Will generate host keys if they don't already exist. exec /usr/bin/sshd -D diff --git a/extra/openssh/post-install b/extra/openssh/post-install new file mode 100755 index 00000000..2a9af2fd --- /dev/null +++ b/extra/openssh/post-install @@ -0,0 +1,3 @@ +#!/bin/sh +# Generate host keys if they don't already exist. +ssh-keygen -A >/dev/null 2>&1