606
Default
The maximum number of authentication attempts is 3 for SSH users.
Views
System view
Predefined user roles
network-admin
Parameters
retries:
Specifies the maximum number of authentication attempts for SSH users, in the range of 1 to
5.
Usage guidelines
Setting the maximum number of authentication attempts prevents malicious hacking of usernames
and passwords.
If the total number of authentication attempts exceeds the upper limit specified in this command,
further authentication is not allowed.
•
For
any
authentication, an authentication attempt is a publickey or password authentication
process.
•
For
password-publickey
authentication, an authentication attempt contains both a publickey
authentication process and a password authentication process. The server first uses publickey
authentication, and then uses password authentication to authenticate the SSH user.
This configuration does not affect logged-in users. It affects only users that attempt to log in after the
configuration.
Examples
# Set the maximum number of authentication attempts to 4 for SSH users.
<Sysname> system-view
[Sysname] ssh server authentication-retries 4
Related commands
display ssh server
ssh server authentication-timeout
Use
ssh server authentication-timeout
to set the SSH user authentication timeout timer on the
SSH server.
Use
undo ssh server authentication-timeout
to restore the default.
Syntax
ssh server authentication-timeout
time-out-value
undo ssh server authentication-timeout
Default
The SSH user authentication timeout timer is 60 seconds.
Views
System view
Predefined user roles
network-admin
Summary of Contents for FlexNetwork MSR Series
Page 1005: ...987 ...