279
To do… Use the command…
Remarks
authentication
method
For all users or
SFTP users
ssh user username service-type
{ all | sftp } authentication-type
{ password | { any |
password-publickey | publickey }
assign publickey keyname
work-directory directory-name }
CAUTION:
• A user without an SSH account can still pass password authentication and log in to the server throu
h
Stelnet or SFTP, as long as the user can pass AAA authentication and the service type is SSH.
• For successful login through SFTP, you must set the user service type to sftp or all.
• SSH1 does not support the service type sftp. If the client uses SSH1 to log in to the server, you must se
the service type to stelnet or all on the server.
• An SFTP user’s working folder depends on the authentication method. For a user usin
only password
authentication, the working folder is the AAA authorized one. For a user using only publickey
authentication or using both the publickey and password authentication methods, the workin
folder is
the one set by using the ssh user command.
• You can change the authentication method and public key of an SSH user when the user is
communicating with the SSH server, but your chan
es take effect only after the user lo
s out and lo
s in
again.
NOTE:
• With publickey authentication, which commands a user can use after login depends on the user
privilege level, which is configured with the user privilege level command on the user interface.
• With password authentication, which commands a user can use after login depends on AAA
authorization.
Setting the SSH management parameters
SSH management includes:
• Enabling the SSH server to be compatible with SSH1 client
• Setting the RSA server key pair update interval, applicable to users using SSH1 client
• Setting the SSH user authentication timeout period
• Setting the maximum number of SSH authentication attempts
Setting these parameters can help avoid malicious guessing at and cracking of the keys and usernames,
securing your SSH connections.
Follow these steps to set the SSH management parameters:
To do… Use the command…
Remarks
Enter system view system-view —
Enable the SSH server to support
SSH1 clients
ssh server compatible-ssh1x
enable
Optional
By default, the SSH server supports
SSH1 clients.