summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2001-05-19 16:32:16 +0000
committermarkus <markus@openbsd.org>2001-05-19 16:32:16 +0000
commit5d45c05ffebcc4651289bc95e48c8612c55a1898 (patch)
treefe740d6ccda5f1f954bb5fa5e37dda7a33d0160d
parentsort options; Matthew.Stier@fnc.fujitsu.com (diff)
downloadwireguard-openbsd-5d45c05ffebcc4651289bc95e48c8612c55a1898.tar.xz
wireguard-openbsd-5d45c05ffebcc4651289bc95e48c8612c55a1898.zip
change preferredauthentication order to
publickey,hostbased,password,keyboard-interactive document that hostbased defaults to no, document order
-rw-r--r--usr.bin/ssh/ssh.16
-rw-r--r--usr.bin/ssh/sshconnect2.c10
2 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/ssh/ssh.1 b/usr.bin/ssh/ssh.1
index 433d41e7825..da1a4c7bdc3 100644
--- a/usr.bin/ssh/ssh.1
+++ b/usr.bin/ssh/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/usr.bin/ssh/sshconnect2.c b/usr.bin/ssh/sshconnect2.c
index 75bd53d0877..5b354010d25 100644
--- a/usr.bin/ssh/sshconnect2.c
+++ b/usr.bin/ssh/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 <openssl/bn.h>
#include <openssl/md5.h>
@@ -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,