- Added "make host-key" target, Suggestion from Dominik Brettnacher

<domi@saargate.de>
This commit is contained in:
Damien Miller 2000-03-03 22:13:52 +11:00
parent 2453d01611
commit 4095f894dc
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,7 @@
20000303
- Added "make host-key" target, Suggestion from Dominik Brettnacher
<domi@saargate.de>
20000302 20000302
- Big cleanup of autoconf code - Big cleanup of autoconf code
- Rearranged to be a little more logical - Rearranged to be a little more logical

View File

@ -173,8 +173,8 @@ whatever you specified as your --sysconfdir (/usr/local/etc by default).
The default configuration should be instantly usable, though you should The default configuration should be instantly usable, though you should
review it to ensure that it matches your security requirements. review it to ensure that it matches your security requirements.
To generate a host key, issue the following command: (replacing To generate a host key, run "make host-key". Alternately you can do so
/etc/ssh/ssh_host_key with an appropriate path) manually using the following command:
/usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' /usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N ''

View File

@ -136,6 +136,9 @@ install: $(TARGETS)
$(INSTALL) -m 644 sshd_config.out $(DESTDIR)$(sysconfdir)/sshd_config; \ $(INSTALL) -m 644 sshd_config.out $(DESTDIR)$(sysconfdir)/sshd_config; \
fi fi
host-key: ssh-keygen
./ssh-keygen -b 1024 -f $(sysconfdir)/ssh_host_key -N ''
uninstallall: uninstall uninstallall: uninstall
-rm -f $(DESTDIR)$(sysconfdir)/ssh_config -rm -f $(DESTDIR)$(sysconfdir)/ssh_config
-rm -f $(DESTDIR)$(sysconfdir)/sshd_config -rm -f $(DESTDIR)$(sysconfdir)/sshd_config