2013-09-19 06:09:33 +02:00
|
|
|
#!/bin/sh
|
2019-10-15 09:47:08 +02:00
|
|
|
|
2021-09-01 20:03:45 +02:00
|
|
|
test -f /etc/sysconfig/ssh && . /etc/sysconfig/ssh
|
2019-10-15 09:47:08 +02:00
|
|
|
|
2020-02-28 13:19:42 +01:00
|
|
|
if [ "x$SSHD_AUTO_KEYGEN" != "xno" ]; then
|
2013-09-19 06:09:33 +02:00
|
|
|
echo "Checking for missing server keys in /etc/ssh"
|
2021-09-01 20:03:45 +02:00
|
|
|
test -d /etc/ssh || mkdir -p /etc/ssh
|
2013-09-19 06:09:33 +02:00
|
|
|
ssh-keygen -A
|
|
|
|
fi
|