summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-03-03 22:13:52 +1100
committerDamien Miller <djm@mindrot.org>2000-03-03 22:13:52 +1100
commit4095f894dce73a9024493c81190f786b64672c4a (patch)
treefe09f63c536c8b78edd97f0bcbbf0e5b35aba7f3
parent2453d01611c2abb76fc6e1355a70d628ccf8e446 (diff)
- Added "make host-key" target, Suggestion from Dominik Brettnacher
<domi@saargate.de>
-rw-r--r--ChangeLog4
-rw-r--r--INSTALL4
-rw-r--r--Makefile.in3
3 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index cb59d701..a0afccb2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+20000303
+ - Added "make host-key" target, Suggestion from Dominik Brettnacher
+ <domi@saargate.de>
+
20000302
- Big cleanup of autoconf code
- Rearranged to be a little more logical
diff --git a/INSTALL b/INSTALL
index 15ddffc1..4c1c0f86 100644
--- a/INSTALL
+++ b/INSTALL
@@ -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
review it to ensure that it matches your security requirements.
-To generate a host key, issue the following command: (replacing
-/etc/ssh/ssh_host_key with an appropriate path)
+To generate a host key, run "make host-key". Alternately you can do so
+manually using the following command:
/usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N ''
diff --git a/Makefile.in b/Makefile.in
index 7be35784..b406d5f7 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -136,6 +136,9 @@ install: $(TARGETS)
$(INSTALL) -m 644 sshd_config.out $(DESTDIR)$(sysconfdir)/sshd_config; \
fi
+host-key: ssh-keygen
+ ./ssh-keygen -b 1024 -f $(sysconfdir)/ssh_host_key -N ''
+
uninstallall: uninstall
-rm -f $(DESTDIR)$(sysconfdir)/ssh_config
-rm -f $(DESTDIR)$(sysconfdir)/sshd_config