allow specification of alternate host key location(s) via /etc/sysconfig/sshd

<john_florian@dart.biz> (#865803)
This commit is contained in:
Petr Lautrbach 2013-03-26 15:41:49 +01:00
parent 1b95bc38df
commit 811ec1dd36

View File

@ -8,15 +8,15 @@
# source function library
. /etc/rc.d/init.d/functions
# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd
# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd
fips_enabled() {
if [ -r /proc/sys/crypto/fips_enabled ]; then
cat /proc/sys/crypto/fips_enabled