xref: /curl/tests/data/test3021 (revision c91c37b6)
1<testcase>
2<info>
3<keywords>
4SFTP
5server sha256 key check
6</keywords>
7</info>
8
9#
10# Server-side
11<reply>
12<data>
13test
14</data>
15</reply>
16
17#
18# Client-side
19<client>
20# so far only the libssh2 backend supports SHA256
21<features>
22libssh2
23</features>
24<server>
25sftp
26</server>
27<name>
28SFTP correct sha256 host key
29</name>
30<command>
31--hostpubsha256 %SSHSRVSHA256 --key %LOGDIR/server/curl_client_key --pubkey %LOGDIR/server/curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%SSH_PWD/%LOGDIR/file%TESTNUMBER.txt
32</command>
33<setenv>
34# Needed for MSYS2 to not treat the argument as a POSIX path list
35# that has to be converted to Windows paths
36MSYS2_ARG_CONV_EXCL=*
37</setenv>
38<file name="%LOGDIR/file%TESTNUMBER.txt">
39test
40</file>
41</client>
42
43#
44# Verify data after the test has been "shot"
45<verify>
46<errorcode>
470
48</errorcode>
49</verify>
50</testcase>
51