3Com Switch 8800 Advanced Software V5 Configuration Guide
944 CHAPTER 72: CONFIGURING SSH VERSION 2.0
Follow these steps to import RSA public key of the client from a public key file.
Assigning RSA Public
Keys to SSH Users
If the SSH user uses the RSA authentication mode, you need to specify a public key
of the client on the server. When the SSH client logs into the server, the server will
authenticate the SSH client using the public key.
If the SSH user uses the password authentication mode, this configuration is not
required.
Follow these steps to assign an RSA public key to the SSH user.
n
■ An SSH user is created on the SSH server to specify an authentication mode,
SSH service type, and public key for the user. You can create an SSH user by
configuring any one among the ssh user assign rsa-key, ssh user
authentication-type, and ssh user service-type commands. For the Switch
8800 Families, up to 1,024 SSH users can be created, the default
authentication mode is RSA, and the default service type is stelnet.
■ If no SSH user is created, the SSH client can still log into the SSH server through
a local user (if created using the local-user command) so long as the service
type is set to SSH. In this case, the default authentication mode is "password",
and the default SSH service type is Stelnet.
Exit public key editing view to
public key view
public-key-code end -
Save the entered public
key data when exiting the
view
Exit public key view to system
view
peer-public-key end -
To do... Use the Command... Remarks
Enter system view system-view -
Import RSA public key of the
SSH user from a public key file
rsa peer-public-key keyname
import sshkey filename
Required
To do... Use the Command... Remarks
Enter system view system-view -
Assign an RSA public key to the
SSH user
ssh user username assign
rsa-key keyname
Required
keyname indicates the
name of an existing public
key. When you execute
this command, the last
assigned public key will
prevail if public keys are
already assigned to the
user.