File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -99,20 +99,32 @@ jobs:
9999 echo "AuthorizedKeysFile wolfssh/keys/hansel-key-ecc.pub" >> sshd-config-test.txt
100100 echo "PubkeyAuthentication yes" >> sshd-config-test.txt
101101 echo "Subsystem sftp /usr/lib/openssh/sftp-server" >> sshd-config-test.txt
102+ sed -i.bak "s/hansel/$USER/" ./keys/hansel-key-ecc.pub
102103 chmod 600 ./keys/hansel-key-*.pem
103104 chmod 600 ./keys/hansel-key-*.pub
104105 chmod 700 ~/.ssh
105106 sudo mkdir -p /run/sshd
106107 sudo chmod 755 /run/sshd
107- sudo /usr/sbin/sshd -p 22222 -h $PWD/keys/server-key.pem -f sshd-config-test.txt
108+ sudo /usr/sbin/sshd -p 22222 -h $PWD/keys/server-key.pem -f sshd-config-test.txt -E $PWD/sshd-log.txt
108109 cat sshd-config-test.txt
109110 ps -e | grep sshd
110111
112+ - name : Can sftp connect?
113+ working-directory : ./wolfssh/
114+ run : |
115+ echo exit | sftp -vvv -P 22222 -i ./keys/hansel-key-ecc.pem $USER@127.0.0.1
116+
111117 - name : Run SFTP client benchmark
112118 working-directory : ./wolfssh/
119+ timeout-minutes : 5
113120 run : |
114121 ./scripts/get-sftp-benchmark.sh 22222
115122
123+ - name : Print logs if failed
124+ working-directory : ./wolfssh/
125+ if : failure()
126+ run : cat sshd-log.txt
127+
116128 - name : Store Upload Speed PNG
117129 uses : actions/upload-artifact@v4
118130 with :
You can’t perform that action at this time.
0 commit comments