mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-12-24 19:02:06 +00:00
- 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
|
||||
- Remove references to SSLeay.
|
||||
- Big OpenBSD CVS update
|
||||
|
@ -133,6 +133,7 @@ install: manpages $(TARGETS)
|
||||
|
||||
host-key: ssh-keygen
|
||||
./ssh-keygen -b 1024 -f $(sysconfdir)/ssh_host_key -N ''
|
||||
./ssh-keygen -d -f $(sysconfdir)/ssh_host_dsa_key -N ''
|
||||
|
||||
uninstallall: uninstall
|
||||
-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
|
||||
/usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' >&2
|
||||
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
|
||||
then
|
||||
/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..."
|
||||
/usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' >&2
|
||||
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
|
||||
then
|
||||
echo "Restarting the running SSH daemon..."
|
||||
|
Loading…
Reference in New Issue
Block a user