R3303-HP HSR6800 Routers Security Command Reference

353
Use undo ssh server rekey-interval to restore the default.
Syntax
ssh server rekey-interval hours
undo ssh server rekey-interval
Default
The update interval of the RSA server key is 0. The system does not update the RSA server key pairs.
Views
System view
Default command level
3: Manage level
Parameters
hours: Specifies an interval for updating the server key pair in hours, in the range of 1 to 24.
Usage guidelines
This command is only available to SSH users that use SSH1 client software.
Updating the RSA server key periodically can prevent malicious hacking of the key and enhance security
of the SSH connections.
The system does not update any DSA key pair periodically.
Examples
# Set the RSA server key pair update interval to 3 hours.
<Sysname> system-view
[Sysname] ssh server rekey-interval 3
Related commands
display ssh server
ssh user
Use ssh user to create an SSH user and specify the service type and authentication method.
Use undo ssh user to delete an SSH user.
Syntax
ssh user username service-type stelnet authentication-type { password | keyboard-interactive | { any |
password-publickey | publickey } assign { pki-domain pkiname | publickey keyname }}
ssh user username service-type { all | scp | sftp } authentication-type { password | keyboard-interactive
| { any | password-publickey | publickey } assign { pki-domain pkiname | publickey keyname }
work-directory directory-name }
undo ssh user username
Views
System view
Default command level
3: Manage level