Skip to content

Commit

Permalink
increase max auth tries
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobBarthelmeh committed Feb 24, 2025
1 parent d520b75 commit f8f411d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/sftp-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,14 @@ jobs:
echo "AuthorizedKeysFile $PWD/keys/hansel-key-ecc.pub" >> sshd-config-test.txt
echo "PubkeyAuthentication yes" >> sshd-config-test.txt
echo "Subsystem sftp internal-sftp" >> sshd-config-test.txt
echo "MaxAuthTries 15" >> sshd-config-test.txt
sed -i.bak "s/hansel/$USER/" ./keys/hansel-key-ecc.pub
chmod 600 ./keys/hansel-key-*.pem
chmod 600 ./keys/hansel-key-*.pub
chmod 700 ~/.ssh
sudo mkdir -p /run/sshd
sudo chmod 755 /run/sshd
sudo /usr/sbin/sshd -p 22222 -h $PWD/keys/server-key.pem -f sshd-config-test.txt -E $PWD/sshd-log.txt
sudo /usr/sbin/sshd -d -p 22222 -h $PWD/keys/server-key.pem -f sshd-config-test.txt -E $PWD/sshd-log.txt
cat sshd-config-test.txt
ps -e | grep sshd
Expand Down

0 comments on commit f8f411d

Please sign in to comment.