File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments