R3721-F3210-F3171-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101

193
Parameters
times: Maximum number of authentication attempts, in the range 1 to 5.
Description
Use ssh server authentication-retries to set the maximum number of SSH connection authentication
attempts.
Use undo ssh server authentication-retries to restore the default.
By default, the maximum number of SSH connection authentication attempts is 3.
This configuration takes effect only for the users trying to log in after the configuration.
Authentication will fail 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 maximum number of SSH
connection authentication attempts must be at least 2. This is because SSH2.0 users must pass both
password and publickey authentication.
Related commands: display ssh server.
Examples
# Set the maximum number of SSH connection authentication attempts 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 ssh server authentication-timeout to set the SSH user authentication timeout period on the SSH
server.
Use undo ssh server authentication-timeout to restore the default.
By default, the authentication timeout period is 60 seconds.
Related commands: display ssh server.
Examples
# Set the SSH user authentication timeout period to 10 seconds.
<Sysname> system-view
[Sysname] ssh server authentication-timeout 10