fbcab3da0e
Add openssh-7.9p1-keygen-preserve-perms.patch (bsc#1150574). This attempts to preserve the permissions of any existing known_hosts file when modified by ssh-keygen (for instance, with -R). Run 'ssh-keygen -A' on startup only if SSHD_AUTO_KEYGEN="yes" in /etc/sysconfig/ssh. This is set to "yes" by default, but can be changed by the system administrator (bsc#1139089). Add openssh-7.9p1-keygen-preserve-perms.patch (bsc#1150574). This attempts to preserve the permissions of any existing known_hosts file when modified by ssh-keygen (for instance, with -R). OBS-URL: https://build.opensuse.org/request/show/738490 OBS-URL: https://build.opensuse.org/package/show/network/openssh?expand=0&rev=198
9 lines
151 B
Bash
9 lines
151 B
Bash
#!/bin/sh
|
|
|
|
. /etc/sysconfig/ssh
|
|
|
|
if [ "$SSHD_AUTO_KEYGEN" = "yes" ]; then
|
|
echo "Checking for missing server keys in /etc/ssh"
|
|
ssh-keygen -A
|
|
fi
|