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