From 1bfe29151b064d3e1f56c4c45b7f5b74369fcc37 Mon Sep 17 00:00:00 2001 From: Ben Lindstrom Date: Tue, 5 Jun 2001 19:37:25 +0000 Subject: - markus@cvs.openbsd.org 2001/05/19 16:32:16 [ssh.1 sshconnect2.c] change preferredauthentication order to publickey,hostbased,password,keyboard-interactive document that hostbased defaults to no, document order --- ChangeLog | 7 ++++++- ssh.1 | 6 +++--- sshconnect2.c | 10 +++++----- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index ff61de7f8..8e975a0f9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -19,6 +19,11 @@ - markus@cvs.openbsd.org 2001/05/19 16:08:43 [sshd.8] sort options; Matthew.Stier@fnc.fujitsu.com + - markus@cvs.openbsd.org 2001/05/19 16:32:16 + [ssh.1 sshconnect2.c] + change preferredauthentication order to + publickey,hostbased,password,keyboard-interactive + document that hostbased defaults to no, document order 20010528 - (tim) [conifgure.in] add setvbuf test needed for sftp-int.c @@ -5449,4 +5454,4 @@ - Wrote replacements for strlcpy and mkdtemp - Released 1.0pre1 -$Id: ChangeLog,v 1.1231 2001/06/05 19:33:22 mouring Exp $ +$Id: ChangeLog,v 1.1232 2001/06/05 19:37:25 mouring Exp $ diff --git a/ssh.1 b/ssh.1 index 433d41e78..da1a4c7bd 100644 --- a/ssh.1 +++ b/ssh.1 @@ -34,7 +34,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.\" $OpenBSD: ssh.1,v 1.111 2001/05/17 21:34:15 markus Exp $ +.\" $OpenBSD: ssh.1,v 1.112 2001/05/19 16:32:16 markus Exp $ .Dd September 25, 1999 .Dt SSH 1 .Os @@ -812,7 +812,7 @@ The argument must be or .Dq no . The default is -.Dq yes . +.Dq no . This option applies to protocol version 2 only and is similar to .Cm RhostsRSAAuthentication . @@ -925,7 +925,7 @@ authentication methods. This allows a client to prefer one method (e.g. over another method (e.g. .Cm password ) The default for this option is: -.Dq publickey,password,keyboard-interactive +.Dq publickey,hostbased,password,keyboard-interactive .It Cm Protocol Specifies the protocol versions .Nm diff --git a/sshconnect2.c b/sshconnect2.c index 75bd53d08..5b354010d 100644 --- a/sshconnect2.c +++ b/sshconnect2.c @@ -23,7 +23,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshconnect2.c,v 1.73 2001/05/18 14:13:29 markus Exp $"); +RCSID("$OpenBSD: sshconnect2.c,v 1.74 2001/05/19 16:32:16 markus Exp $"); #include #include @@ -202,6 +202,10 @@ Authmethod authmethods[] = { userauth_pubkey, &options.pubkey_authentication, NULL}, + {"hostbased", + userauth_hostbased, + &options.hostbased_authentication, + NULL}, {"password", userauth_passwd, &options.password_authentication, @@ -210,10 +214,6 @@ Authmethod authmethods[] = { userauth_kbdint, &options.kbd_interactive_authentication, &options.batch_mode}, - {"hostbased", - userauth_hostbased, - &options.hostbased_authentication, - NULL}, {"none", userauth_none, NULL, -- cgit v1.2.3