- Do not try to create /etc/ssh in sshd-gen-keys-start (bsc#1238191). sshd-gen-keys-start transitions to a SELinux domain that doesn't have the necessary permissions. Based on a SR by Johannes Segitz <jsegitz@suse.com>. OBS-URL: https://build.opensuse.org/request/show/1268142 OBS-URL: https://build.opensuse.org/package/show/network/openssh?expand=0&rev=287
9 lines
183 B
Bash
9 lines
183 B
Bash
#!/bin/sh
|
|
|
|
test -f /etc/sysconfig/ssh && . /etc/sysconfig/ssh
|
|
|
|
if [ "x$SSHD_AUTO_KEYGEN" != "xno" ]; then
|
|
echo "Checking for missing server keys in /etc/ssh"
|
|
ssh-keygen -A
|
|
fi
|