upstream commit
show in debug output which hostkeys are being tried when
attempting hostbased auth; patch from Iain Morgan
diff --git a/sshconnect2.c b/sshconnect2.c
index 68f7f4f..6884d6b 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 @@
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) {