]> andersk Git - openssh.git/blame - README.dns
- jakob@cvs.openbsd.org 2003/05/14 18:16:20
[openssh.git] / README.dns
CommitLineData
21289cd0 1How to verify host keys using OpenSSH and DNS
2---------------------------------------------
3
4OpenSSH contains experimental support for verifying host keys using DNS
5as described in draft-ietf-secsh-dns-xx.txt. The document contains
6very brief instructions on how to test this feature. Configuring DNS
7and DNSSEC is out of the scope of this document.
8
9
10(1) Enable DNS fingerprint support in OpenSSH
11
12Edit /usr/src/usr.bin/ssh/Makefile.inc and uncomment the line containing
13
14 CFLAGS+= -DDNS
15
16
17(2) Generate and publish the DNS RR
18
19To create a DNS resource record (RR) containing a fingerprint of the
20public host key, use the following command:
21
22 ssh-keygen -r hostname -f keyfile -g
23
24where "hostname" is your fully qualified hostname and "keyfile" is the
25file containing the public host key file. If you have multiple keys,
26you should generate one RR for each key.
27
28In the example above, ssh-keygen will print the fingerprint in a
29generic DNS RR format parsable by most modern name server
30implementations. If your nameserver has support for the SSHFP RR, as
31defined by the draft, you can omit the -g flag and ssh-keygen will
32print a standard RR.
33
34To publish the fingerprint using the DNS you must add the generated RR
35to your DNS zone file and sign your zone.
36
37
38(3) Enable the ssh client to verify host keys using DNS
39
40To enable the ssh client to verify host keys using DNS, you have to
41add the following option to the ssh configuration file
42($HOME/.ssh/config or /etc/ssh/ssh_config):
43
44 VerifyHostKeyDNS yes
45
46Upon connection the client will try to look up the fingerprint RR
47using DNS. If the fingerprint received from the DNS server matches
48the remote host key, the user will be notified.
49
50
51 Jakob Schlyter
52 Wesley Griffin
53
54
55$OpenBSD: README.dns,v 1.1 2003/05/14 18:16:20 jakob Exp $
This page took 0.075585 seconds and 5 git commands to generate.