If you have used the ssh user authentication-type command to configure the authentication type of a
user to password-publickey, you must set the authentication retry times to a number greater than or
equal to 2 (so that the user can access the switch).
Related commands: display ssh server.
Examples
# Set the authentication retry times to four.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] ssh server authentication-retries 4
ssh server timeout
Syntax
ssh server timeout seconds
undo ssh server timeout
View
System view
Parameters
seconds: Authentication timeout time, ranging from 1 to 120 (in seconds).
Description
Use the ssh server timeout command to set the authentication timeout time for SSH connections.
Use the undo ssh server timeout command to restore the default timeout time (that is, 60 seconds).
The configuration here will take effect at next login.
Related commands: display ssh server.
Examples
# Set the authentication timeout time to 80 seconds.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] ssh server timeout 80
ssh user
Syntax
ssh user username
undo ssh user username
1-24