summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-01-31 21:46:51 +1100
committerDamien Miller <djm@mindrot.org>2006-01-31 21:46:51 +1100
commitbbc59094b95aee8456918c35a8138179d34008a1 (patch)
tree30b3085e7ee7e0ccca22ebe5664d3f2020545250
parent7602cba59d11822c51346b44c043a39ef2fe608a (diff)
- jmc@cvs.openbsd.org 2006/01/26 08:47:56
[ssh.1] add a section on verifying host keys in dns; written with a lot of help from jakob; feedback dtucker/markus; ok markus
-rw-r--r--ChangeLog8
-rw-r--r--ssh.161
2 files changed, 58 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index 9229652e8..f38e515fd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,12 @@
12 - jmc@cvs.openbsd.org 2006/01/25 09:07:22 12 - jmc@cvs.openbsd.org 2006/01/25 09:07:22
13 [sshd.8] 13 [sshd.8]
14 move subsections to full sections; 14 move subsections to full sections;
15 - jmc@cvs.openbsd.org 2006/01/26 08:47:56
16 [ssh.1]
17 add a section on verifying host keys in dns;
18 written with a lot of help from jakob;
19 feedback dtucker/markus;
20 ok markus
15 21
1620060129 2220060129
17 - (dtucker) [configure.ac opensshd.init.in] Bug #1144: Use /bin/sh for the 23 - (dtucker) [configure.ac opensshd.init.in] Bug #1144: Use /bin/sh for the
@@ -3737,4 +3743,4 @@
3737 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 3743 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
3738 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 3744 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
3739 3745
3740$Id: ChangeLog,v 1.4097 2006/01/31 10:46:20 djm Exp $ 3746$Id: ChangeLog,v 1.4098 2006/01/31 10:46:51 djm Exp $
diff --git a/ssh.1 b/ssh.1
index 3fe142dc1..309782879 100644
--- a/ssh.1
+++ b/ssh.1
@@ -34,7 +34,7 @@
34.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 34.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
35.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 35.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36.\" 36.\"
37.\" $OpenBSD: ssh.1,v 1.251 2006/01/20 00:14:55 dtucker Exp $ 37.\" $OpenBSD: ssh.1,v 1.252 2006/01/26 08:47:56 jmc Exp $
38.Dd September 25, 1999 38.Dd September 25, 1999
39.Dt SSH 1 39.Dt SSH 1
40.Os 40.Os
@@ -810,15 +810,6 @@ The
810option can be used to control logins to machines whose 810option can be used to control logins to machines whose
811host key is not known or has changed. 811host key is not known or has changed.
812.Pp 812.Pp
813.Nm
814can be configured to verify host identification using fingerprint resource
815records (SSHFP) published in DNS.
816The
817.Cm VerifyHostKeyDNS
818option can be used to control how DNS lookups are performed.
819SSHFP resource records can be generated using
820.Xr ssh-keygen 1 .
821.Pp
822When the user's identity has been accepted by the server, the server 813When the user's identity has been accepted by the server, the server
823either executes the given command, or logs into the machine and gives 814either executes the given command, or logs into the machine and gives
824the user a normal shell on the remote machine. 815the user a normal shell on the remote machine.
@@ -1006,6 +997,56 @@ and
1006options above) and 997options above) and
1007the user is using an authentication agent, the connection to the agent 998the user is using an authentication agent, the connection to the agent
1008is automatically forwarded to the remote side. 999is automatically forwarded to the remote side.
1000.Sh VERIFYING HOST KEYS
1001When connecting to a server for the first time,
1002a fingerprint of the server's public key is presented to the user
1003(unless the option
1004.Cm StrictHostKeyChecking
1005has been disabled).
1006Fingerprints can be determined using
1007.Xr ssh-keygen 1 :
1008.Pp
1009.Dl $ ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key
1010.Pp
1011If the fingerprint is already known,
1012it can be matched and verified,
1013and the key can be accepted.
1014If the fingerprint is unknown,
1015an alternative method of verification is available:
1016SSH fingerprints verified by DNS.
1017An additional resource record (RR),
1018SSHFP,
1019is added to a zonefile
1020and the connecting client is able to match the fingerprint
1021with that of the key presented.
1022.Pp
1023In this example, we are connecting a client to a server,
1024.Dq host.example.com .
1025The SSHFP resource records should first be added to the zonefile for
1026host.example.com:
1027.Bd -literal -offset indent
1028$ ssh-keygen -f /etc/ssh/ssh_host_rsa_key.pub -r host.example.com.
1029$ ssh-keygen -f /etc/ssh/ssh_host_dsa_key.pub -r host.example.com.
1030.Ed
1031.Pp
1032The output lines will have to be added to the zonefile.
1033To check that the zone is answering fingerprint queries:
1034.Pp
1035.Dl $ dig -t SSHFP host.example.com
1036.Pp
1037Finally the client connects:
1038.Bd -literal -offset indent
1039$ ssh -o "VerifyHostKeyDNS ask" host.example.com
1040[...]
1041Matching host key fingerprint found in DNS.
1042Are you sure you want to continue connecting (yes/no)?
1043.Ed
1044.Pp
1045See the
1046.Cm VerifyHostKeyDNS
1047option in
1048.Xr ssh_config 5
1049for more information.
1009.Sh SSH-BASED VIRTUAL PRIVATE NETWORKS 1050.Sh SSH-BASED VIRTUAL PRIVATE NETWORKS
1010.Nm 1051.Nm
1011contains support for Virtual Private Network (VPN) tunnelling 1052contains support for Virtual Private Network (VPN) tunnelling