Configuration Guide Configuring SSH
 Configuring the SSH Authentication Timeout
 Run the ip ssh time-out time command to set the SSH authentication timeout to 100s.
Ruijie#configure terminal
Ruijie(config)#ip sshtime-out100
 Run the show ip ssh command to display the configured SSH authentication timeout.
Ruijie(config)#show ip ssh
SSH Enable - version 2.0
Authentication timeout: 100 secs
Authentication retries: 3
SSH SCP Server: disabled
 Configuring the Maximum Number of SSH Authentication Retries
 Run the ip ssh authentication-retries retry times command to set the maximum number of user
authentication retries on the SSH server to 2.
Ruijie#configure terminal
Ruijie(config)#ip ssh authentication-retries 2
 Run the show ip ssh command to display the configured maximum number of authentication retries.
Ruijie(config)#show ip ssh
SSH Enable - version 2.0
Authentication timeout: 100 secs
Authentication retries: 3
SSH SCP Server: disabled
 Configuring the Public Key Authentication
 Run the ip ssh peer username public-key { rsa | dsa}filename command to associate a public key file
of the client with a user name. When the client is authenticated upon login, a public key file (for
example, RSA)is specified based on the user name.
Ruijie#configure terminal
Ruijie(config)# ip ssh peer test public-key rsaflash:rsa.pub