Skip to content

Commit 1106664

Browse files
no host checking with test
1 parent d477c52 commit 1106664

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/sftp-benchmark.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
- name: Can sftp connect?
113113
working-directory: ./wolfssh/
114114
run: |
115-
echo exit | sftp -vvv -P 22222 -i ./keys/hansel-key-ecc.pem $USER@127.0.0.1
115+
echo exit | sftp -vvv -P 22222 -o "StrictHostKeyChecking no" -i ./keys/hansel-key-ecc.pem $USER@127.0.0.1
116116
117117
- name: Run SFTP client benchmark
118118
working-directory: ./wolfssh/
@@ -123,7 +123,7 @@ jobs:
123123
- name: Print logs if failed
124124
working-directory: ./wolfssh/
125125
if: failure()
126-
run: cat sshd-log.txt
126+
run: sudo cat sshd-log.txt
127127

128128
- name: Store Upload Speed PNG
129129
uses: actions/upload-artifact@v4

scripts/get-sftp-benchmark.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fi
1919

2020
do_openssh_put_test() {
2121
cp $TEST_FILE $TEST_FILE-out
22-
sftp_command="sftp -P$PORT -i $KEY $USER@127.0.0.1"
22+
sftp_command="sftp -P$PORT -o \"StrictHostKeyChecking no\" -i $KEY $USER@127.0.0.1"
2323
output_file="sftp_log.txt"
2424

2525
# Start the script command to capture the sftp session
@@ -37,7 +37,7 @@ EOF" /dev/null 2>&1 | tee $output_file | while read line; do
3737

3838
do_openssh_get_test() {
3939
cp $TEST_FILE $TEST_FILE-out
40-
sftp_command="sftp -P $PORT -i $KEY $USER@127.0.0.1"
40+
sftp_command="sftp -P $PORT -o \"StrictHostKeyChecking no\" -i $KEY $USER@127.0.0.1"
4141
output_file="sftp_log.txt"
4242

4343
# Start the script command to capture the sftp session

0 commit comments

Comments
 (0)