diff options
author | djm@openbsd.org <djm@openbsd.org> | 2016-08-23 06:36:23 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2016-08-23 16:38:10 +1000 |
commit | a39627134f6d90e7009eeb14e9582ecbc7a99192 (patch) | |
tree | 5cba3dcc4f731319ab9a6cfe216191b0105cf47a | |
parent | 6ee4f1c01ee31e65245881d49d4bccf014956066 (diff) |
upstream commit
remove Protocol directive from client/server configs that
causes spammy deprecation warnings
hardcode SSH_PROTOCOLS=2, since that's all we support on the server
now (the client still may support both, so it could get confused)
Upstream-Regress-ID: c16662c631af51633f9fd06aca552a70535de181
-rw-r--r-- | regress/test-exec.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/regress/test-exec.sh b/regress/test-exec.sh index 1b6526d0b..7a456bbee 100644 --- a/regress/test-exec.sh +++ b/regress/test-exec.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: test-exec.sh,v 1.53 2016/04/15 02:57:10 djm Exp $ | 1 | # $OpenBSD: test-exec.sh,v 1.54 2016/08/23 06:36:23 djm Exp $ |
2 | # Placed in the Public Domain. | 2 | # Placed in the Public Domain. |
3 | 3 | ||
4 | #SUDO=sudo | 4 | #SUDO=sudo |
@@ -130,7 +130,8 @@ if [ "x$TEST_SSH_CONCH" != "x" ]; then | |||
130 | esac | 130 | esac |
131 | fi | 131 | fi |
132 | 132 | ||
133 | SSH_PROTOCOLS=`$SSH -Q protocol-version` | 133 | SSH_PROTOCOLS=2 |
134 | #SSH_PROTOCOLS=`$SSH -Q protocol-version` | ||
134 | if [ "x$TEST_SSH_PROTOCOLS" != "x" ]; then | 135 | if [ "x$TEST_SSH_PROTOCOLS" != "x" ]; then |
135 | SSH_PROTOCOLS="${TEST_SSH_PROTOCOLS}" | 136 | SSH_PROTOCOLS="${TEST_SSH_PROTOCOLS}" |
136 | fi | 137 | fi |
@@ -400,7 +401,6 @@ fi | |||
400 | cat << EOF > $OBJ/sshd_config | 401 | cat << EOF > $OBJ/sshd_config |
401 | StrictModes no | 402 | StrictModes no |
402 | Port $PORT | 403 | Port $PORT |
403 | Protocol $PROTO | ||
404 | AddressFamily inet | 404 | AddressFamily inet |
405 | ListenAddress 127.0.0.1 | 405 | ListenAddress 127.0.0.1 |
406 | #ListenAddress ::1 | 406 | #ListenAddress ::1 |
@@ -433,7 +433,6 @@ echo 'StrictModes no' >> $OBJ/sshd_proxy | |||
433 | # create client config | 433 | # create client config |
434 | cat << EOF > $OBJ/ssh_config | 434 | cat << EOF > $OBJ/ssh_config |
435 | Host * | 435 | Host * |
436 | Protocol $PROTO | ||
437 | Hostname 127.0.0.1 | 436 | Hostname 127.0.0.1 |
438 | HostKeyAlias localhost-with-alias | 437 | HostKeyAlias localhost-with-alias |
439 | Port $PORT | 438 | Port $PORT |