Skip to content

Commit

Permalink
feat: increase number of public key attempts before failing
Browse files Browse the repository at this point in the history
  • Loading branch information
rocketeerbkw committed Jun 12, 2024
1 parent 2331ec6 commit d731d5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion services/ssh/etc/ssh/sshd_config
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ HostKey /etc/ssh/ssh_host_ed25519_key

LogLevel INFO

# Increase the number of ssh-agent key attempts before failure
MaxAuthTries 18

PermitRootLogin no

# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
Expand Down Expand Up @@ -39,4 +42,4 @@ ClientAliveInterval 60
ClientAliveCountMax 1440 # max keepalive of 24h

# This will allow sftp access
Subsystem sftp sftp-server -u 0002
Subsystem sftp sftp-server -u 0002

0 comments on commit d731d5a

Please sign in to comment.