History log of /openbsd-current/regress/usr.bin/ssh/agent.sh
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.21 01-Mar-2023 dtucker

Rework logging for the regression tests. Previously we would log to
ssh.log and sshd.log, but that is insufficient for tests that have more
than one concurent ssh/sshd.

Instead, we'll log to separate datestamped files in a $OBJ/log/ and
leave a symlink at the previous location pointing at the most recent
instance with an entry in regress.log showing which files were created
at each point. This should be sufficient to reconstruct what happened
even for tests that use multiple instances of each program. If the test
fails, tar up all of the logs for later analysis.

This will let us also capture the output from some of the other tools
which was previously sent to /dev/null although most of those will be
in future commits.


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.20 25-Feb-2021 djm

s/PubkeyAcceptedKeyTypes/PubkeyAcceptedAlgorithms/


Revision tags: OPENBSD_6_8_BASE
# 1.19 15-Jul-2020 dtucker

Use $OBJ to find key files. Fixes test when run on an obj directory
(on OpenBSD) or out of tree (in Portable).


# 1.18 26-Jun-2020 djm

regress test for ssh-add -d; ok dtucker@


Revision tags: OPENBSD_6_7_BASE
# 1.17 21-Dec-2019 djm

unit tests for ForwardAgent=/path; from Eric Chiang


# 1.16 26-Nov-2019 djm

test FIDO2/U2F key types; ok markus@


Revision tags: OPENBSD_6_6_BASE
# 1.15 23-Jul-2019 dtucker

Only add ssh-dss to allowed key types if it's supported by the binary.


Revision tags: OPENBSD_6_5_BASE
# 1.14 28-Jan-2019 dtucker

Enable ssh-dss for the agent test. Disable it for the certificate
test.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.13 19-Dec-2017 djm

explicitly test all key types and their certificate counterparts

refactor a little


Revision tags: OPENBSD_6_2_BASE
# 1.12 30-Apr-2017 djm

eliminate explicit specification of protocol in tests and loops over
protocol. We only support SSHv2 now.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.11 03-Mar-2015 markus

make it possible to run tests w/o ssh1 support; ok djm@


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.10 27-Feb-2014 djm

keep return values that are printed in error messages;
from portable


# 1.9 06-Dec-2013 markus

test ed25519 support; from djm@


Revision tags: OPENBSD_5_4_BASE
# 1.8 17-May-2013 dtucker

replace 'echo -n' with 'printf' since it's more portable


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.7 25-Nov-2007 jmc

more existant -> existent, from Martynas Venckus;
pfctl changes: ok henning
ssh changes: ok deraadt


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.6 15-Mar-2002 markus

allow specification of binary-under-test with
$TEST_SSH_{SSH,SSHD,SSHAGENT,SSHADD,SSHKEYGEN,SSHKEYSCAN}


# 1.5 17-Feb-2002 markus

try agent forwarding, too.


# 1.4 16-Feb-2002 markus

$OpenBSD$, public domain


# 1.3 15-Feb-2002 markus

we don't need a listening sshd for most of our tests, just
connect client and server w/o TCP:
ssh -o 'proxycommand sshd -i -f $OBJ/sshd_proxy'


# 1.2 15-Feb-2002 markus

delete agent keys, too


# 1.1 14-Feb-2002 markus

serveral tests for ssh-keygen/ssh/sshd/ssh-add/ssh-agent

note that these tests will start sshd on 127.0.0.1:4242
and will fail if the realpath of /usr/src/usr.sbin/ssh/obj/ contains
a group or world writeable directory.


# 1.20 25-Feb-2021 djm

s/PubkeyAcceptedKeyTypes/PubkeyAcceptedAlgorithms/


Revision tags: OPENBSD_6_8_BASE
# 1.19 15-Jul-2020 dtucker

Use $OBJ to find key files. Fixes test when run on an obj directory
(on OpenBSD) or out of tree (in Portable).


# 1.18 26-Jun-2020 djm

regress test for ssh-add -d; ok dtucker@


Revision tags: OPENBSD_6_7_BASE
# 1.17 21-Dec-2019 djm

unit tests for ForwardAgent=/path; from Eric Chiang


# 1.16 26-Nov-2019 djm

test FIDO2/U2F key types; ok markus@


Revision tags: OPENBSD_6_6_BASE
# 1.15 23-Jul-2019 dtucker

Only add ssh-dss to allowed key types if it's supported by the binary.


Revision tags: OPENBSD_6_5_BASE
# 1.14 28-Jan-2019 dtucker

Enable ssh-dss for the agent test. Disable it for the certificate
test.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.13 19-Dec-2017 djm

explicitly test all key types and their certificate counterparts

refactor a little


Revision tags: OPENBSD_6_2_BASE
# 1.12 30-Apr-2017 djm

eliminate explicit specification of protocol in tests and loops over
protocol. We only support SSHv2 now.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.11 03-Mar-2015 markus

make it possible to run tests w/o ssh1 support; ok djm@


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.10 27-Feb-2014 djm

keep return values that are printed in error messages;
from portable


# 1.9 06-Dec-2013 markus

test ed25519 support; from djm@


Revision tags: OPENBSD_5_4_BASE
# 1.8 17-May-2013 dtucker

replace 'echo -n' with 'printf' since it's more portable


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.7 25-Nov-2007 jmc

more existant -> existent, from Martynas Venckus;
pfctl changes: ok henning
ssh changes: ok deraadt


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.6 15-Mar-2002 markus

allow specification of binary-under-test with
$TEST_SSH_{SSH,SSHD,SSHAGENT,SSHADD,SSHKEYGEN,SSHKEYSCAN}


# 1.5 17-Feb-2002 markus

try agent forwarding, too.


# 1.4 16-Feb-2002 markus

$OpenBSD$, public domain


# 1.3 15-Feb-2002 markus

we don't need a listening sshd for most of our tests, just
connect client and server w/o TCP:
ssh -o 'proxycommand sshd -i -f $OBJ/sshd_proxy'


# 1.2 15-Feb-2002 markus

delete agent keys, too


# 1.1 14-Feb-2002 markus

serveral tests for ssh-keygen/ssh/sshd/ssh-add/ssh-agent

note that these tests will start sshd on 127.0.0.1:4242
and will fail if the realpath of /usr/src/usr.sbin/ssh/obj/ contains
a group or world writeable directory.


# 1.19 15-Jul-2020 dtucker

Use $OBJ to find key files. Fixes test when run on an obj directory
(on OpenBSD) or out of tree (in Portable).


# 1.18 26-Jun-2020 djm

regress test for ssh-add -d; ok dtucker@


Revision tags: OPENBSD_6_7_BASE
# 1.17 21-Dec-2019 djm

unit tests for ForwardAgent=/path; from Eric Chiang


# 1.16 26-Nov-2019 djm

test FIDO2/U2F key types; ok markus@


Revision tags: OPENBSD_6_6_BASE
# 1.15 23-Jul-2019 dtucker

Only add ssh-dss to allowed key types if it's supported by the binary.


Revision tags: OPENBSD_6_5_BASE
# 1.14 28-Jan-2019 dtucker

Enable ssh-dss for the agent test. Disable it for the certificate
test.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.13 19-Dec-2017 djm

explicitly test all key types and their certificate counterparts

refactor a little


Revision tags: OPENBSD_6_2_BASE
# 1.12 30-Apr-2017 djm

eliminate explicit specification of protocol in tests and loops over
protocol. We only support SSHv2 now.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.11 03-Mar-2015 markus

make it possible to run tests w/o ssh1 support; ok djm@


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.10 27-Feb-2014 djm

keep return values that are printed in error messages;
from portable


# 1.9 06-Dec-2013 markus

test ed25519 support; from djm@


Revision tags: OPENBSD_5_4_BASE
# 1.8 17-May-2013 dtucker

replace 'echo -n' with 'printf' since it's more portable


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.7 25-Nov-2007 jmc

more existant -> existent, from Martynas Venckus;
pfctl changes: ok henning
ssh changes: ok deraadt


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.6 15-Mar-2002 markus

allow specification of binary-under-test with
$TEST_SSH_{SSH,SSHD,SSHAGENT,SSHADD,SSHKEYGEN,SSHKEYSCAN}


# 1.5 17-Feb-2002 markus

try agent forwarding, too.


# 1.4 16-Feb-2002 markus

$OpenBSD$, public domain


# 1.3 15-Feb-2002 markus

we don't need a listening sshd for most of our tests, just
connect client and server w/o TCP:
ssh -o 'proxycommand sshd -i -f $OBJ/sshd_proxy'


# 1.2 15-Feb-2002 markus

delete agent keys, too


# 1.1 14-Feb-2002 markus

serveral tests for ssh-keygen/ssh/sshd/ssh-add/ssh-agent

note that these tests will start sshd on 127.0.0.1:4242
and will fail if the realpath of /usr/src/usr.sbin/ssh/obj/ contains
a group or world writeable directory.


# 1.18 26-Jun-2020 djm

regress test for ssh-add -d; ok dtucker@


Revision tags: OPENBSD_6_7_BASE
# 1.17 21-Dec-2019 djm

unit tests for ForwardAgent=/path; from Eric Chiang


# 1.16 26-Nov-2019 djm

test FIDO2/U2F key types; ok markus@


Revision tags: OPENBSD_6_6_BASE
# 1.15 23-Jul-2019 dtucker

Only add ssh-dss to allowed key types if it's supported by the binary.


Revision tags: OPENBSD_6_5_BASE
# 1.14 28-Jan-2019 dtucker

Enable ssh-dss for the agent test. Disable it for the certificate
test.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.13 19-Dec-2017 djm

explicitly test all key types and their certificate counterparts

refactor a little


Revision tags: OPENBSD_6_2_BASE
# 1.12 30-Apr-2017 djm

eliminate explicit specification of protocol in tests and loops over
protocol. We only support SSHv2 now.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.11 03-Mar-2015 markus

make it possible to run tests w/o ssh1 support; ok djm@


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.10 27-Feb-2014 djm

keep return values that are printed in error messages;
from portable


# 1.9 06-Dec-2013 markus

test ed25519 support; from djm@


Revision tags: OPENBSD_5_4_BASE
# 1.8 17-May-2013 dtucker

replace 'echo -n' with 'printf' since it's more portable


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.7 25-Nov-2007 jmc

more existant -> existent, from Martynas Venckus;
pfctl changes: ok henning
ssh changes: ok deraadt


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.6 15-Mar-2002 markus

allow specification of binary-under-test with
$TEST_SSH_{SSH,SSHD,SSHAGENT,SSHADD,SSHKEYGEN,SSHKEYSCAN}


# 1.5 17-Feb-2002 markus

try agent forwarding, too.


# 1.4 16-Feb-2002 markus

$OpenBSD$, public domain


# 1.3 15-Feb-2002 markus

we don't need a listening sshd for most of our tests, just
connect client and server w/o TCP:
ssh -o 'proxycommand sshd -i -f $OBJ/sshd_proxy'


# 1.2 15-Feb-2002 markus

delete agent keys, too


# 1.1 14-Feb-2002 markus

serveral tests for ssh-keygen/ssh/sshd/ssh-add/ssh-agent

note that these tests will start sshd on 127.0.0.1:4242
and will fail if the realpath of /usr/src/usr.sbin/ssh/obj/ contains
a group or world writeable directory.


# 1.17 21-Dec-2019 djm

unit tests for ForwardAgent=/path; from Eric Chiang


# 1.16 26-Nov-2019 djm

test FIDO2/U2F key types; ok markus@


Revision tags: OPENBSD_6_6_BASE
# 1.15 23-Jul-2019 dtucker

Only add ssh-dss to allowed key types if it's supported by the binary.


Revision tags: OPENBSD_6_5_BASE
# 1.14 28-Jan-2019 dtucker

Enable ssh-dss for the agent test. Disable it for the certificate
test.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.13 19-Dec-2017 djm

explicitly test all key types and their certificate counterparts

refactor a little


Revision tags: OPENBSD_6_2_BASE
# 1.12 30-Apr-2017 djm

eliminate explicit specification of protocol in tests and loops over
protocol. We only support SSHv2 now.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.11 03-Mar-2015 markus

make it possible to run tests w/o ssh1 support; ok djm@


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.10 27-Feb-2014 djm

keep return values that are printed in error messages;
from portable


# 1.9 06-Dec-2013 markus

test ed25519 support; from djm@


Revision tags: OPENBSD_5_4_BASE
# 1.8 17-May-2013 dtucker

replace 'echo -n' with 'printf' since it's more portable


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.7 25-Nov-2007 jmc

more existant -> existent, from Martynas Venckus;
pfctl changes: ok henning
ssh changes: ok deraadt


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.6 15-Mar-2002 markus

allow specification of binary-under-test with
$TEST_SSH_{SSH,SSHD,SSHAGENT,SSHADD,SSHKEYGEN,SSHKEYSCAN}


# 1.5 17-Feb-2002 markus

try agent forwarding, too.


# 1.4 16-Feb-2002 markus

$OpenBSD$, public domain


# 1.3 15-Feb-2002 markus

we don't need a listening sshd for most of our tests, just
connect client and server w/o TCP:
ssh -o 'proxycommand sshd -i -f $OBJ/sshd_proxy'


# 1.2 15-Feb-2002 markus

delete agent keys, too


# 1.1 14-Feb-2002 markus

serveral tests for ssh-keygen/ssh/sshd/ssh-add/ssh-agent

note that these tests will start sshd on 127.0.0.1:4242
and will fail if the realpath of /usr/src/usr.sbin/ssh/obj/ contains
a group or world writeable directory.


# 1.16 26-Nov-2019 djm

test FIDO2/U2F key types; ok markus@


Revision tags: OPENBSD_6_6_BASE
# 1.15 23-Jul-2019 dtucker

Only add ssh-dss to allowed key types if it's supported by the binary.


Revision tags: OPENBSD_6_5_BASE
# 1.14 28-Jan-2019 dtucker

Enable ssh-dss for the agent test. Disable it for the certificate
test.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.13 19-Dec-2017 djm

explicitly test all key types and their certificate counterparts

refactor a little


Revision tags: OPENBSD_6_2_BASE
# 1.12 30-Apr-2017 djm

eliminate explicit specification of protocol in tests and loops over
protocol. We only support SSHv2 now.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.11 03-Mar-2015 markus

make it possible to run tests w/o ssh1 support; ok djm@


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.10 27-Feb-2014 djm

keep return values that are printed in error messages;
from portable


# 1.9 06-Dec-2013 markus

test ed25519 support; from djm@


Revision tags: OPENBSD_5_4_BASE
# 1.8 17-May-2013 dtucker

replace 'echo -n' with 'printf' since it's more portable


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.7 25-Nov-2007 jmc

more existant -> existent, from Martynas Venckus;
pfctl changes: ok henning
ssh changes: ok deraadt


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.6 15-Mar-2002 markus

allow specification of binary-under-test with
$TEST_SSH_{SSH,SSHD,SSHAGENT,SSHADD,SSHKEYGEN,SSHKEYSCAN}


# 1.5 17-Feb-2002 markus

try agent forwarding, too.


# 1.4 16-Feb-2002 markus

$OpenBSD$, public domain


# 1.3 15-Feb-2002 markus

we don't need a listening sshd for most of our tests, just
connect client and server w/o TCP:
ssh -o 'proxycommand sshd -i -f $OBJ/sshd_proxy'


# 1.2 15-Feb-2002 markus

delete agent keys, too


# 1.1 14-Feb-2002 markus

serveral tests for ssh-keygen/ssh/sshd/ssh-add/ssh-agent

note that these tests will start sshd on 127.0.0.1:4242
and will fail if the realpath of /usr/src/usr.sbin/ssh/obj/ contains
a group or world writeable directory.


# 1.15 23-Jul-2019 dtucker

Only add ssh-dss to allowed key types if it's supported by the binary.


Revision tags: OPENBSD_6_5_BASE
# 1.14 28-Jan-2019 dtucker

Enable ssh-dss for the agent test. Disable it for the certificate
test.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.13 19-Dec-2017 djm

explicitly test all key types and their certificate counterparts

refactor a little


Revision tags: OPENBSD_6_2_BASE
# 1.12 30-Apr-2017 djm

eliminate explicit specification of protocol in tests and loops over
protocol. We only support SSHv2 now.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.11 03-Mar-2015 markus

make it possible to run tests w/o ssh1 support; ok djm@


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.10 27-Feb-2014 djm

keep return values that are printed in error messages;
from portable


# 1.9 06-Dec-2013 markus

test ed25519 support; from djm@


Revision tags: OPENBSD_5_4_BASE
# 1.8 17-May-2013 dtucker

replace 'echo -n' with 'printf' since it's more portable


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.7 25-Nov-2007 jmc

more existant -> existent, from Martynas Venckus;
pfctl changes: ok henning
ssh changes: ok deraadt


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.6 15-Mar-2002 markus

allow specification of binary-under-test with
$TEST_SSH_{SSH,SSHD,SSHAGENT,SSHADD,SSHKEYGEN,SSHKEYSCAN}


# 1.5 17-Feb-2002 markus

try agent forwarding, too.


# 1.4 16-Feb-2002 markus

$OpenBSD$, public domain


# 1.3 15-Feb-2002 markus

we don't need a listening sshd for most of our tests, just
connect client and server w/o TCP:
ssh -o 'proxycommand sshd -i -f $OBJ/sshd_proxy'


# 1.2 15-Feb-2002 markus

delete agent keys, too


# 1.1 14-Feb-2002 markus

serveral tests for ssh-keygen/ssh/sshd/ssh-add/ssh-agent

note that these tests will start sshd on 127.0.0.1:4242
and will fail if the realpath of /usr/src/usr.sbin/ssh/obj/ contains
a group or world writeable directory.


# 1.14 28-Jan-2019 dtucker

Enable ssh-dss for the agent test. Disable it for the certificate
test.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.13 19-Dec-2017 djm

explicitly test all key types and their certificate counterparts

refactor a little


Revision tags: OPENBSD_6_2_BASE
# 1.12 30-Apr-2017 djm

eliminate explicit specification of protocol in tests and loops over
protocol. We only support SSHv2 now.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.11 03-Mar-2015 markus

make it possible to run tests w/o ssh1 support; ok djm@


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.10 27-Feb-2014 djm

keep return values that are printed in error messages;
from portable


# 1.9 06-Dec-2013 markus

test ed25519 support; from djm@


Revision tags: OPENBSD_5_4_BASE
# 1.8 17-May-2013 dtucker

replace 'echo -n' with 'printf' since it's more portable


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.7 25-Nov-2007 jmc

more existant -> existent, from Martynas Venckus;
pfctl changes: ok henning
ssh changes: ok deraadt


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.6 15-Mar-2002 markus

allow specification of binary-under-test with
$TEST_SSH_{SSH,SSHD,SSHAGENT,SSHADD,SSHKEYGEN,SSHKEYSCAN}


# 1.5 17-Feb-2002 markus

try agent forwarding, too.


# 1.4 16-Feb-2002 markus

$OpenBSD$, public domain


# 1.3 15-Feb-2002 markus

we don't need a listening sshd for most of our tests, just
connect client and server w/o TCP:
ssh -o 'proxycommand sshd -i -f $OBJ/sshd_proxy'


# 1.2 15-Feb-2002 markus

delete agent keys, too


# 1.1 14-Feb-2002 markus

serveral tests for ssh-keygen/ssh/sshd/ssh-add/ssh-agent

note that these tests will start sshd on 127.0.0.1:4242
and will fail if the realpath of /usr/src/usr.sbin/ssh/obj/ contains
a group or world writeable directory.


# 1.13 19-Dec-2017 djm

explicitly test all key types and their certificate counterparts

refactor a little


Revision tags: OPENBSD_6_2_BASE
# 1.12 30-Apr-2017 djm

eliminate explicit specification of protocol in tests and loops over
protocol. We only support SSHv2 now.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.11 03-Mar-2015 markus

make it possible to run tests w/o ssh1 support; ok djm@


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.10 27-Feb-2014 djm

keep return values that are printed in error messages;
from portable


# 1.9 06-Dec-2013 markus

test ed25519 support; from djm@


Revision tags: OPENBSD_5_4_BASE
# 1.8 17-May-2013 dtucker

replace 'echo -n' with 'printf' since it's more portable


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.7 25-Nov-2007 jmc

more existant -> existent, from Martynas Venckus;
pfctl changes: ok henning
ssh changes: ok deraadt


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.6 15-Mar-2002 markus

allow specification of binary-under-test with
$TEST_SSH_{SSH,SSHD,SSHAGENT,SSHADD,SSHKEYGEN,SSHKEYSCAN}


# 1.5 17-Feb-2002 markus

try agent forwarding, too.


# 1.4 16-Feb-2002 markus

$OpenBSD$, public domain


# 1.3 15-Feb-2002 markus

we don't need a listening sshd for most of our tests, just
connect client and server w/o TCP:
ssh -o 'proxycommand sshd -i -f $OBJ/sshd_proxy'


# 1.2 15-Feb-2002 markus

delete agent keys, too


# 1.1 14-Feb-2002 markus

serveral tests for ssh-keygen/ssh/sshd/ssh-add/ssh-agent

note that these tests will start sshd on 127.0.0.1:4242
and will fail if the realpath of /usr/src/usr.sbin/ssh/obj/ contains
a group or world writeable directory.