Add possibility to autocreate only RSA key into initscript
This commit is contained in:
parent
6323f67e20
commit
c32d4acc8b
@ -69,7 +69,7 @@
|
|||||||
Summary: An open source implementation of SSH protocol versions 1 and 2
|
Summary: An open source implementation of SSH protocol versions 1 and 2
|
||||||
Name: openssh
|
Name: openssh
|
||||||
Version: 5.3p1
|
Version: 5.3p1
|
||||||
Release: 11%{?dist}%{?rescue_rel}
|
Release: 12%{?dist}%{?rescue_rel}
|
||||||
URL: http://www.openssh.com/portable.html
|
URL: http://www.openssh.com/portable.html
|
||||||
#URL1: http://pamsshauth.sourceforge.net
|
#URL1: http://pamsshauth.sourceforge.net
|
||||||
#Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz
|
#Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz
|
||||||
@ -525,6 +525,9 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Dec 4 2009 Jan F. Chadima <jchadima@redhat.com> - 5.3p1-12
|
||||||
|
- Add possibility to autocreate only RSA key into initscript (#533339)
|
||||||
|
|
||||||
* Fri Nov 27 2009 Jan F. Chadima <jchadima@redhat.com> - 5.3p1-11
|
* Fri Nov 27 2009 Jan F. Chadima <jchadima@redhat.com> - 5.3p1-11
|
||||||
- Prepare NSS key patch for future SEC_ERROR_LOCKED_PASSWORD (#537411)
|
- Prepare NSS key patch for future SEC_ERROR_LOCKED_PASSWORD (#537411)
|
||||||
|
|
||||||
|
@ -122,10 +122,12 @@ start()
|
|||||||
[ -f /etc/ssh/sshd_config ] || exit 6
|
[ -f /etc/ssh/sshd_config ] || exit 6
|
||||||
# Create keys if necessary
|
# Create keys if necessary
|
||||||
if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
|
if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
|
||||||
do_rsa1_keygen
|
|
||||||
do_rsa_keygen
|
do_rsa_keygen
|
||||||
|
if [ "x${AUTOCREATE_SERVER_KEYS}" != xRSAONLY ]; then
|
||||||
|
do_rsa1_keygen
|
||||||
do_dsa_keygen
|
do_dsa_keygen
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
echo -n $"Starting $prog: "
|
echo -n $"Starting $prog: "
|
||||||
$SSHD $OPTIONS && success || failure
|
$SSHD $OPTIONS && success || failure
|
||||||
|
Loading…
Reference in New Issue
Block a user