How do I set the number of failed login retries with SSH?

Updated -

For a SSH client connecting to the SSH server, three (3) is the default number of failed login retries. However, this can be modified by configuring the /etc/ssh/ssh_config file from the SSH client system and using the NumberOfPasswordPrompts directive. With NumberOfPasswordPrompts, its possible to specify the number of password prompts before giving up. ...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content