summaryrefslogtreecommitdiff
path: root/tests/sshserver.pl
Commit message (Collapse)AuthorAgeFilesLines
* tests/sshserver.pl: fix compatibility with OpenSSH for WindowsMarc Hoersken2020-07-311-0/+5
| | | | Follow up to #5721
* all: fix codespell errorsViktor Szakats2020-05-251-1/+1
| | | | | | Reviewed-by: Jay Satiro Reviewed-by: Daniel Stenberg Closes https://github.com/curl/curl/pull/5452
* tests: use Cygwin/msys PIDs for stunnel and sshd on WindowsMarc Hoersken2020-04-111-3/+31
| | | | | | | | | | | | Since the Windows versions of both programs would write Windows PIDs to their pidfiles which we cannot handle, we need to use our known perl.exe Cygwin/msys PID together with exec() in order to tie the spawned processes to the existance of our perl.exe The perl.exe that is executing secureserver.pl and sshserver.pl has a Cygwin/msys PID, because it is started inside Cygwin/msys. Related to #5188
* sshserver.pl: use cached Win32 environment check variableMarc Hoersken2020-04-101-2/+2
|
* copyright: fix out-of-date copyright ranges and missing headersDaniel Stenberg2020-03-241-1/+1
| | | | | | | | | Reported by the new script 'scripts/copyright.pl'. The script has a regex whitelist for the files that don't need copyright headers. Removed three (mostly usesless) README files from docs/ Closes #5141
* libssh: Fix matching user-specified MD5 hex keyJay Satiro2020-03-071-4/+24
| | | | | | | | | | | Prior to this change a match would never be successful because it was mistakenly coded to compare binary data from libssh to a user-specified hex string (ie CURLOPT_SSH_HOST_PUBLIC_KEY_MD5). Reported-by: fds242@users.noreply.github.com Fixes https://github.com/curl/curl/issues/4971 Closes https://github.com/curl/curl/pull/4974
* tests: fix permissions of ssh keys in WSLMarc Hoersken2019-12-091-0/+3
| | | | | | | | | Keys created on Windows Subsystem for Linux (WSL) require it for some reason. (This is one of several commits to support use of WSL for the tests.) Ref: https://github.com/curl/curl/pull/3899
* tests: add support to test against OpenSSH for WindowsMarc Hoersken2019-05-221-6/+40
| | | | | | Testing against OpenSSH for Windows requires v7.7.0.0 or newer due to the use of AllowUsers and DenyUsers. For more info see: https://github.com/PowerShell/Win32-OpenSSH/wiki/sshd_config
* test: make tests and test scripts use socksd for SOCKSDaniel Stenberg2019-04-131-18/+7
| | | | Make all SOCKS tests use socksd instead of ssh.
* spelling fixesklemens2017-03-261-1/+1
| | | | Closes #1356
* tests: Use 'pathhelp' for paths conversions in sshserver.plKarlson2k2016-04-291-8/+9
|
* sshserver.pl: use quotes for given optionsKarlson2k2016-03-261-1/+1
| | | | | | Fixed failed redirection of stderr with some options. At least on Msys2, perl fails to redirect stderr if $value contains newline or other weird characters.
* Revert "sshserver: remove use of AuthorizedKeysFile2"Daniel Stenberg2016-03-221-1/+3
| | | | | | | It seems we may have some autobuild problems after this commit went in. Trying to see if a revert helps to get them back. This reverts commit 2716350d1f3edc8e929f6ceeee05051090f6d642.
* sshserver: remove use of AuthorizedKeysFile2Daniel Stenberg2016-03-211-3/+1
| | | | | | | Support for the (undocumented) AuthorizedKeysFile2 was removed in OpenSSH 5.9, released in September 2011 Closes #715
* tests/sshserver.pl: use RSA instead of DSA for host authKamil Dudka2016-02-231-6/+6
| | | | | | | | | | DSA is no longer supported by OpenSSH 7.0, which causes all SCP/SFTP test cases to be skipped. Using RSA for host authentication works with both old and new versions of OpenSSH. Reported-by: Karlson2k Closes #676
* URLs: change all http:// URLs to https://Daniel Stenberg2016-02-031-1/+1
|
* sshserver.pl: clarify and streamline variable namesMarc Hoersken2014-12-221-6/+7
|
* tests: use Cygwin-style paths in SSH, SSHD and SFTP config filesMarc Hoersken2014-12-211-7/+37
| | | | | | Second patch to enable Windows support using Cygwin-based OpenSSH. Tested with CopSSH 5.0.0 free edition using an msys shell on Windows 7.
* tests: support spaces in paths to SSH, SSHD and SFTP binariesMarc Hoersken2014-12-211-11/+11
| | | | First patch to enable Windows support using Cygwin-based OpenSSH.
* sshserver: disable StrictHostKeyCheckingDaniel Stenberg2013-04-251-2/+5
| | | | | | | | I couldn't figure out why the host key logic isn't working, but having it set to yes prevents my SSH-based test cases to run. I also don't see a strong need to use strict host key checking on this test server. So I disabled it.
* test harness: fix detection of test harness client knownhosts fileYang Tse2011-08-311-2/+3
| | | | | Regenerate curl's tests client knownhosts file also when, somehow, this file is empty.
* test harness: fix detection of test harness host and client key filesYang Tse2011-08-311-2/+4
| | | | | Regenerate curl's tests host and client key files also when, somehow, any of these files are empty.
* restore executable bits on some filesDaniel Stenberg2010-03-241-0/+0
|
* remove the CVSish $Id$ linesDaniel Stenberg2010-03-241-1/+0
|
* Start using the centralized pidfile and logfile name generationYang Tse2010-01-151-29/+90
| | | | subroutines for ssh and socks test suite servers.
* SunSSH sshd ignores UsePrivilegeSeparation optionYang Tse2008-04-041-5/+4
|
* SunSSH 1.2 options syncYang Tse2008-04-041-1/+17
|
* Additional SunSSH 1.1 ssh server optionsYang Tse2008-02-111-0/+16
|
* Get rid of sftp subsystem additional parameters, they aren't widely supportedYang Tse2008-02-081-1/+1
|
* To verify that the sftp server is actually running, responsive and thatYang Tse2008-02-081-3/+64
| | | | | | | | | | all curl's tests generated configuration and key files are fine, a real connection is established to the test harness sftp server authenticating and running a simple sftp remote pwd command. The verification is done using OpenSSH's or SunSSH's sftp client tool with a configuration file with the same options as the test harness socks server with the exception that dynamic forwarding is not used for sftp.
* When possible, use additional config options for test harness ssh server,Yang Tse2008-01-311-2/+20
| | | | which are deprecated in recent OpenSSH versions but are current for SunSSH.
* Dont rely on PAMAuthenticationViaKbdInt default being 'no'Yang Tse2008-01-271-0/+4
|
* Also disable GSSAPIAuthentication for the test harness ssh clientYang Tse2008-01-201-2/+13
|
* Remove hardcoded verbosityYang Tse2008-01-121-3/+3
|
* Temporary change to help debugging SSH server verification failuresYang Tse2008-01-101-1/+1
|
* Remove increased loglevel intended to debug autobuild's publickeyYang Tse2008-01-081-10/+2
| | | | | | | | | authentication failures when using OpenSSH 2.9.9 or SunSSH. Verified fact: Even when only using publickey authentication, OpenSSH and SunSSH first validate the user, this implies that if the user validation fails, 'invalid user', the publickey authentication will not be allowed to complete.
* Increase loglevel to debug autobuild's publickey authenticationYang Tse2008-01-081-0/+10
| | | | failures when using OpenSSH 2.9.9 or SunSSH
* Increase MaxAuthTries from 0 to 10. Using a value of 0 is too restrictiveYang Tse2008-01-061-2/+2
|
* 'ControlPath' ssh client configuration file option requires OpenSSH 4.2 orYang Tse2008-01-041-0/+3
| | | | later to accept 'none' as an indication to disable connection multiplexing
* SunSSH 1.1 ssh client does not support config file options:Yang Tse2008-01-041-5/+5
| | | | | | | | | ConnectTimeout ForwardX11Trusted HashKnownHosts RekeyLimit ServerAliveCountMax ServerAliveInterval
* 'LocalCommand' no longer used for ssh client config file. When used itYang Tse2008-01-041-5/+1
| | | | requires a non blank argument.
* Modify test harness so that the minimum SSH version required to runYang Tse2008-01-031-285/+797
| | | | | | SCP, SFTP and SOCKS4 tests is now OpenSSH 2.9.9 or SunSSH 1.0 For SOCKS5 tests minimum versions are OpenSSH 3.7 or SunSSH 1.0
* Use getcwd() to get the directory, which works even if one of the directoryDan Fandrich2007-12-221-2/+2
| | | | components doesn't have read permission set.
* To allow remote log inspection avoid redirecting messages to stderr.Yang Tse2007-11-281-32/+20
| | | | Cleanup some debugging messages. Unlink log file on exit.
* ConnectTimeout requires OpenSSH 3.7 or laterYang Tse2007-11-271-39/+55
|
* Explicitly disallow remote hosts to connect to local forwarded ports,Yang Tse2007-11-271-0/+1
| | | | | the socks server port in the test suite. This is the default setting unless a tinkered built ssh is being used.
* Temporary change to better debug startup failuresYang Tse2007-11-261-0/+12
| | | | of test suite ssh and socks servers.
* Don't gather additional debug info unless sshd actually failsYang Tse2007-11-201-7/+14
|
* Improve detection of sshd un/supported options.Yang Tse2007-11-201-2/+25
| | | | Gather additional debug info when the test suite ssh server fails to start.
* This is a temporary change to test if OpenSSH 3.6 and SunSSH 1.1Yang Tse2007-11-191-10/+24
| | | | | are good/compatible enough to run the test suite ssh server and socks tests