393
Parameters
hours: Specifies an interval for updating the server key pair, in the range of 1 to 24 hours.
Usage guidelines
This command is not available in FIPS mode.
Updating the RSA server key pair periodically can prevent malicious hacking to the key pair and
enhance security of the SSH connections.
This command takes effect only on SSH clients that use SSH1 client software.
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
In non-FIPS mode:
ssh user username service-type { all | scp | sftp | stelnet } authentication-type { password | { any |
password-publickey | publickey } assign { pki-domain domain-name | publickey keyname } }
undo ssh user username
In FIPS mode:
ssh user username service-type { all | scp | sftp | stelnet } authentication-type { password |
password-publickey assign { pki-domain domain-name | publickey keyname } }
undo ssh user username
Default
No SSH users exist.
Views
System view
Predefined user roles
network-admin
Parameters
username: Specifies an SSH username, a case-sensitive string of 1 to 80 characters. If the username
contains an ISP domain name, use the form pureusername@domain. The pureusername argument is a
string of 1 to 55 characters. The domain argument is a string of 1 to 24 characters.
service-type: Specifies a service type for an SSH user:
• all: Specifies Stelnet, SFTP, and SCP.