summaryrefslogtreecommitdiff
path: root/regress/usr.bin/ssh
AgeCommit message (Collapse)Author
2024-12-06use glob(3) wildcards in AuthorizedKeys/PrincipalsFile tests toDamien Miller
exercise this feature; ok dtucker
2024-12-06implement attestation verification for ED25519 keysDamien Miller
2024-12-06Expand $SSH to absolute path if it's not already. Prevents problemDarren Tucker
later in increase_datafile_size if ssh is not in the path. Patch from quaresmajose via GHPR#510.
2024-12-05Add key expiry test in the 64bit time_t range for additional coverage.Darren Tucker
From Alexander Kanavin via bz#3684.
2024-12-04add a work-in-progress tool to verify FIDO attestation blobsDamien Miller
that ssh-keygen can write when enrolling FIDO keys.
2024-12-04Don't assume existence of SK provider in test.Darren Tucker
Patch from balu.gajjala at gmail via bz#3402.
2024-11-26regression test for UpdateHostkeys with multiple keys backed byDamien Miller
ssh-agent. Patch from Maxime Rey.
2024-10-24test SIGUSR1 dropping all keys from ssh-agentDamien Miller
2024-10-22Remove sshd logfile in start_sshd, and ssh and sshd log wrappers beforeDarren Tucker
recreating them. Prevents "can't create" errors during tests when running tests without SUDO after having run them with SUDO.
2024-10-14regress support for split sshd-auth binaryDamien Miller
2024-09-27test some more Match syntax, including criteria=arg and negationsDamien Miller
2024-09-09test mlkem768x25519-sha256Damien Miller
2024-09-03regression test for Include variable expansionDamien Miller
2024-08-28fix test: -F is the argument to specify a non-default ssh_config,Damien Miller
not -f (this is sadly not a new bug)
2024-08-22Use aes128-ctr for MAC tests since default has implicit MAC.Darren Tucker
Also verify that the Cipher or MAC we intended to use is actually the one selected during the test.
2024-08-21Some awks won't match on the \r so delete it instead.Darren Tucker
Fixes regress in portable on, eg Solaris.
2024-08-21Use curve25519-sha256 kex where possible. Except where we're explicitlyDarren Tucker
testing a different kex, use curve25519-sha256 since it's faster than the default and supported even when configured without OpenSSL. Add a check to ensure that the kex we intended to test is the one we actually tested. Speeds test up by ~5%.
2024-08-20Send only as much data as needed to trigger rekeying.Darren Tucker
Speeds up tests by about 10% in the common case, hopefully more when instrumented with something like valgrind.
2024-08-20Merge AEAD test into main test loop. Removes 3 duplicate tests andDarren Tucker
speeds overall test up by about 1%.
2024-08-20Set a default RekeyLimit of 256k. Used unless overridden by aDarren Tucker
command-line flag, which simplifies some of the ssh command lines.
2024-08-20Add Compression=no to default ssh_config. All of the rekey tests use itDarren Tucker
(otherwise the encrypted byte counts would not match) so this lets us simplify the command lines.
2024-08-20Remove duplicate curve25519-sha256 kex. curve25519-sha256@libssh.orgDarren Tucker
is the pre-standardization name for the same thing, so remove it as a duplicate. Speeds up test by a tiny amount.
2024-08-20Unnest rekey param parsing test and use ssh not sshd. ssh uses the sameDarren Tucker
parsing code, now has "-G" to dump its config and is slightly faster to start up. This speeds up the test slightly (~5%) in the common case but should help more during instrumented tests, eg under valgrind, where startup costs are magnified.
2024-08-15adapt to EVP_PKEY conversionDamien Miller
2024-07-19test transfers in mux proxy mode tooDamien Miller
2024-07-01use "lcd" to change directory before "lls" rather then "cd", sinceDamien Miller
the directory we're trying to list is local. Spotted by Corinna Vinschen
2024-06-20Work around dbclient cipher and mac query bug.Darren Tucker
Unlike earlier versions, recent Dropbear (at least v2024.85) requires a host arg when querying supported ciphers and macs via "-c/-m help". Earlier versions accept but do not require it, so always provide it. If these queries fail, skip the test with a warning.
2024-06-20Remove dropbear key types not supported by current OpenSSH.Darren Tucker
Allows subsequent test runs to work if OpenSSH is rebuilt w/out OpenSSL.
2024-06-19Provide defaults for ciphers and macs if querying for them fails sinceDarren Tucker
on some versions of Dropbear (at least v2024.85) "-m help" doesn't seem to work. Enable all supported pubkey algorithms in the server.
2024-06-19Use ed25519 keys for kex tests since that's supported by OpenSSH even whenDarren Tucker
built without OpenSSL. Only test diffie-hellman kex if OpenSSH is compiled with support for it.
2024-06-19Rework dropbear key setup to always generate ed25519 keys, other typesDarren Tucker
only if OpenSSH has support for the corresponding key type.
2024-06-18Re-enable ssh-dss tests if ssh is compiled with DSA supportDarren Tucker
2024-06-18Stop using DSA in dropbear interop tests.Anton Lindqvist
2024-06-16same treatment for this testDamien Miller
2024-06-16penalty test is still a bit racyDamien Miller
2024-06-15crank up penalty timeouts so this should work on even the slowest ofDamien Miller
test builders
2024-06-14split the PerSourcePenalties test in two: one tests penalty enforcementDamien Miller
but not penalty expiry, the other tests penalty expiry. This lets us disable the expiry testing in certain CI test environments.
2024-06-14don't redirect stderr for ssh-keyscan we expect to succeedDamien Miller
2024-06-14specify an algorithm for ssh-keyscan, otherwise it will makeDamien Miller
multiple attempts simultaneously and confuse the test
2024-06-11fix PIDFILE handling, broken for SUDO=doas in last commit hereDamien Miller
2024-06-06regress test for PerSourcePenaltiesDamien Miller
2024-06-06make sure logs are saved from sshd run via start_sshdDamien Miller
2024-06-06simplifyDamien Miller
2024-06-06prepare for PerSourcePenalties being enabled by default in futureDamien Miller
2024-05-22this test has been broken since 2014, and has been testing the sameDamien Miller
key exchange algorithm repeatedly instead of testing all of them. Spotted by nreilly AT blackberry.com in bz3692 Who broke the test? me.
2024-05-19Add missing kex-names.c source file required since the ssh split.Anton Lindqvist
2024-05-17allow overriding the sshd-session binary pathDamien Miller
2024-04-03Since ssh-agent(1) is only readable by root by now, use ssh(1) whileAnton Lindqvist
generating data in tests.
2024-03-29Use egrep instead of grep -E. Some plaforms don't have the latter so thisDarren Tucker
makes things easier in -portable.
2024-03-26test -h is the POSIXly way of testing for a symlink. Reduces diff vsDarren Tucker
Portable.