- Generate DSA host keys during "make key" or RPM installs
This commit is contained in:
parent
a3f2a02bc3
commit
58e579bcd9
|
@ -1,3 +1,7 @@
|
||||||
|
20000508
|
||||||
|
- Makefile and RPM spec fixes
|
||||||
|
- Generate DSA host keys during "make key" or RPM installs
|
||||||
|
|
||||||
20000507
|
20000507
|
||||||
- Remove references to SSLeay.
|
- Remove references to SSLeay.
|
||||||
- Big OpenBSD CVS update
|
- Big OpenBSD CVS update
|
||||||
|
|
|
@ -133,6 +133,7 @@ install: manpages $(TARGETS)
|
||||||
|
|
||||||
host-key: ssh-keygen
|
host-key: ssh-keygen
|
||||||
./ssh-keygen -b 1024 -f $(sysconfdir)/ssh_host_key -N ''
|
./ssh-keygen -b 1024 -f $(sysconfdir)/ssh_host_key -N ''
|
||||||
|
./ssh-keygen -d -f $(sysconfdir)/ssh_host_dsa_key -N ''
|
||||||
|
|
||||||
uninstallall: uninstall
|
uninstallall: uninstall
|
||||||
-rm -f $(DESTDIR)$(sysconfdir)/ssh_config
|
-rm -f $(DESTDIR)$(sysconfdir)/ssh_config
|
||||||
|
|
|
@ -190,6 +190,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
if [ ! -f /etc/ssh/ssh_host_key -o ! -s /etc/ssh/ssh_host_key ]; then
|
if [ ! -f /etc/ssh/ssh_host_key -o ! -s /etc/ssh/ssh_host_key ]; then
|
||||||
/usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' >&2
|
/usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' >&2
|
||||||
fi
|
fi
|
||||||
|
if [ ! -f /etc/ssh/ssh_host_dsa_key -o ! -s /etc/ssh/ssh_host_dsa_key ]; then
|
||||||
|
/usr/bin/ssh-keygen -d -f /etc/ssh/ssh_host_dsa_key -N '' >&2
|
||||||
|
fi
|
||||||
if test -r /var/run/sshd.pid
|
if test -r /var/run/sshd.pid
|
||||||
then
|
then
|
||||||
/etc/rc.d/init.d/sshd restart >&2
|
/etc/rc.d/init.d/sshd restart >&2
|
||||||
|
|
|
@ -197,6 +197,10 @@ if [ ! -f /etc/ssh/ssh_host_key -o ! -s /etc/ssh/ssh_host_key ]; then
|
||||||
echo "Generating SSH host key..."
|
echo "Generating SSH host key..."
|
||||||
/usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' >&2
|
/usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' >&2
|
||||||
fi
|
fi
|
||||||
|
if [ ! -f /etc/ssh/ssh_host_dsa_key -o ! -s /etc/ssh/ssh_host_dsa_key ]; then
|
||||||
|
echo "Generating SSH DSA host key..."
|
||||||
|
/usr/bin/ssh-keygen -d -f /etc/ssh/ssh_host_dsa_key -N '' >&2
|
||||||
|
fi
|
||||||
if test -r /var/run/sshd.pid
|
if test -r /var/run/sshd.pid
|
||||||
then
|
then
|
||||||
echo "Restarting the running SSH daemon..."
|
echo "Restarting the running SSH daemon..."
|
||||||
|
|
Loading…
Reference in New Issue