From eced9b46d69306674f8437dcf6fdbf7a3df08736 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Petazzoni?= Date: Tue, 7 Dec 2021 12:08:44 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=91=20Increase=20MaxAuthTries=20in=20S?= =?UTF-8?q?SH=20for=20folks=20with=20many=20keys?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- prepare-vms/lib/commands.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/prepare-vms/lib/commands.sh b/prepare-vms/lib/commands.sh index fdb484b4..d33fd6d8 100644 --- a/prepare-vms/lib/commands.sh +++ b/prepare-vms/lib/commands.sh @@ -75,9 +75,11 @@ _cmd_createuser() { echo '$USER_LOGIN ALL=(ALL) NOPASSWD:ALL' | sudo tee /etc/sudoers.d/$USER_LOGIN " + # The MaxAuthTries is here to help with folks who have many SSH keys. pssh " set -e sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config + sudo sed -i 's/#MaxAuthTries 6/MaxAuthTries 42/' /etc/ssh/sshd_config sudo service ssh restart "