Skip to content

Commit f8f411d

Browse files
increase max auth tries
1 parent d520b75 commit f8f411d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/sftp-benchmark.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,14 @@ jobs:
103103
echo "AuthorizedKeysFile $PWD/keys/hansel-key-ecc.pub" >> sshd-config-test.txt
104104
echo "PubkeyAuthentication yes" >> sshd-config-test.txt
105105
echo "Subsystem sftp internal-sftp" >> sshd-config-test.txt
106+
echo "MaxAuthTries 15" >> sshd-config-test.txt
106107
sed -i.bak "s/hansel/$USER/" ./keys/hansel-key-ecc.pub
107108
chmod 600 ./keys/hansel-key-*.pem
108109
chmod 600 ./keys/hansel-key-*.pub
109110
chmod 700 ~/.ssh
110111
sudo mkdir -p /run/sshd
111112
sudo chmod 755 /run/sshd
112-
sudo /usr/sbin/sshd -p 22222 -h $PWD/keys/server-key.pem -f sshd-config-test.txt -E $PWD/sshd-log.txt
113+
sudo /usr/sbin/sshd -d -p 22222 -h $PWD/keys/server-key.pem -f sshd-config-test.txt -E $PWD/sshd-log.txt
113114
cat sshd-config-test.txt
114115
ps -e | grep sshd
115116

0 commit comments

Comments
 (0)