We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb2df2a commit d847784Copy full SHA for d847784
1 file changed
src/etc/one-context.d/loc-24-ssh_host_key##deb
@@ -17,6 +17,11 @@
17
#--------------------------------------------------------------------------- #
18
19
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
20
- DEBIAN_FRONTEND=noninteractive dpkg-reconfigure openssh-server
+ if ssh-keygen -A; then
21
+ if type restorecon >/dev/null 2>&1; then
22
+ restorecon -R -v /etc/ssh/
23
+ fi
24
+ else
25
+ DEBIAN_FRONTEND=noninteractive dpkg-reconfigure openssh-server
26
27
fi
-
0 commit comments