How do I setup ssh to prompt the user for more than 6 login attempts? I try to set it higher than 6 but it still stops at 6

Asked by Neal Wang

I set up the ssh and sshd server, trying to get ubuntu 22.04 to prompt me more than six for the login but I can only get it 6x, how do I set it so it does more?

in sshd_config i set maxauthtries to 16 or even higher and it still stops after 6 prompts when i try to ssh into the vm from outside

https://manpages.ubuntu.com/manpages/impish/en/man5/sshd_config.5.html

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

It's the MaxAuthTries value you need to manipulate. You will need to restart the sshd service after you update the config

Revision history for this message
Neal Wang (nealw) said :
#2

It's set at 16 right now which means it should prompt at least 8 x, right now it is only still prompting 6 times max

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Did you restart sshd after updating the configuration file?

Revision history for this message
Neal Wang (nealw) said :
#4

yes multiple times

service sshd restart

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5
Revision history for this message
Neal Wang (nealw) said :
#6

"ssh server authentication-retries 4"

i dont see the parameter "authentication-retries" here:

it's not in this manual:

https://manpages.ubuntu.com/manpages/jammy/man5/sshd_config.5.html

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7
Revision history for this message
Neal Wang (nealw) said :
#8

the article requires you to be a customer of redhat...

Revision history for this message
Neal Wang (nealw) said :
#9

I'm not able to read the red hat article

Revision history for this message
Launchpad Janitor (janitor) said :
#10

This question was expired because it remained in the 'Open' state without activity for the last 15 days.