242
undo ssh server authentication-retries
View
System view
Default level
3: Manage level
Parameters
times:
Maximum number of authentication attempts for SSH users, in the range 1 to 5.
Description
Use the
ssh server authentication-retries
command to set the maximum number of connection
authentication attempts for SSH users.
Use the
undo ssh server authentication-retries
command to restore the default.
By default, the maximum number of connection authentication attempts for SSH users is 3.
This configuration takes effect only for the users at next login.
Authentication fails if the number of authentication attempts—including both publickey and password
authentication—exceeds that specified in the
ssh server authentication-retries
command.
If the authentication method of SSH users is
password-publickey
, the server first uses publickey
authentication, and then uses password authentication to authenticate SSH users. The process is
regarded as one authentication attempt.
Related commands:
display
ssh
server
.
Examples
# Set the maximum number of connection authentication attempts for SSH users to 4.
<Sysname> system-view
[Sysname] ssh server authentication-retries 4
ssh server authentication-timeout
Syntax
ssh server authentication-timeout
time-out-value
undo ssh server authentication-timeout
View
System view
Default level
3: Manage level
Parameters
time-out-value
: Authentication timeout period in seconds, in the range 1 to 120.
Description
Use the
ssh server authentication-timeout
command to set the SSH user authentication timeout period on
the SSH server.
Use the
undo ssh server authentication-timeout
command to restore the default.