H3C S7500 Series Ethernet Switches Release 3135 DHCP Configuration Examples

SSH Configuration Examples
H3C S7500 Series Ethernet Switches Release 3135 Chapter 2 SSH Configuration Commands
2-2
z Executing the ssh authentication-type default all command or the ssh user
authentication-type all command means that users can login the SSH server as
long as they pass either the password or RSA authentication.
II. Public key configuration procedure and precautions
As shown in Table 2-1, you need to copy or import the public key from the client to the
server.
z When a host acts as the SSH client, use the SSH client program to generate an
RSA key pair and display the RSA public key.
z When a switch acts as the SSH client, use the display rsa local-key-pair public
command to display the RSA public key after creating RSA key pair through the
corresponding commands.
z Manually copy the RSA public key to the SSH server. Thus, the SSH server has
the same public key as the SSH client, and can authenticate the SSH client when
the SSH client establishes a connection with it.
2.2.2 Configuration Commands
I. Common configuration
Table 2-2 Common configuration
Operation Command Remarks
Enter system view
system-view
Enter the view of one
or multiple user
interfaces
user-interface [ type-keyword ]
number [ ending-number ]
Configure the
authentication mode
as scheme
authentication-mode scheme
[ command-authorization ]
Required
By default, the user
interface authentication
mode is password.
Specify the supported
protocol(s)
protocol inbound { all |ssh |
telnet }
Optional
By default, both Telnet
and SSH are supported.
Return to the system
view
quit
Create an RSA key
pair
rsa local-key-pair create
Required
By default, no RSA key
pair is created.
Destroy the RSA key
pair
rsa local-key-pair destroy
Optional
Specify a service type
for the SSH user
ssh user username
service-type { stelnet | sftp |
all }
Optional
stelnet by default