From 17bf3d81e00f2abb414a4fd271118cf4913f049f Mon Sep 17 00:00:00 2001 From: "djm@openbsd.org" Date: Thu, 11 Dec 2014 05:13:28 +0000 Subject: upstream commit show in debug output which hostkeys are being tried when attempting hostbased auth; patch from Iain Morgan --- sshconnect2.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sshconnect2.c b/sshconnect2.c index 68f7f4fdd..6884d6be1 100644 --- a/sshconnect2.c +++ b/sshconnect2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshconnect2.c,v 1.210 2014/07/15 15:54:14 millert Exp $ */ +/* $OpenBSD: sshconnect2.c,v 1.211 2014/12/11 05:13:28 djm Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * Copyright (c) 2008 Damien Miller. All rights reserved. @@ -1503,10 +1503,14 @@ userauth_hostbased(Authctxt *authctxt) debug("No more client hostkeys for hostbased authentication."); return 0; } + + debug("%s: trying hostkey type %s", __func__, key_type(private)); + if (key_to_blob(private, &blob, &blen) == 0) { key_free(private); return 0; } + /* figure out a name for the client host */ p = get_local_name(packet_get_connection_in()); if (p == NULL) { -- cgit v1.2.3