H3C LS-5100-16P-SI-OVS-H3 Configuration page 94

Low-end ethernet switches
Table of Contents

Advertisement

SSH
H3C Low-End Ethernet Switches Configuration Examples
[H3C-ui-vty0-4] user privilege level 3
[H3C-ui-vty0-4] quit
# Specify the authentication type of user client001 as RSA.
[H3C] ssh user client001 authentication-type rsa
Note:
Before proceeding with the following steps, you need to generate an RSA key pair on
the client, and manually configure the RSA public key for the SSH server. For detailed
information, refer to SSH client configuration.
# Configure the public key of the SSH client on the SSH server, and specify the public
key name as Switch001..
[H3C] rsa peer-public-key Switch001
RSA public key view: return to System View with "peer-public-key end".
[H3C-rsa-public-key] public-key-code begin
RSA key code view: return to last view with "public-key-code end".
[H3C-rsa-key-code] 3047
[H3C-rsa-key-code] 0240
[H3C-rsa-key-code] C8969B5A 132440F4 0BDB4E5E 40308747 804F608B
[H3C-rsa-key-code] 349EBD6A B0C75CDF 8B84DBE7 D5E2C4F8 AED72834
[H3C-rsa-key-code] 74D3404A 0B14363D D709CC63 68C8CE00 57C0EE6B
[H3C-rsa-key-code] 074C0CA9
[H3C-rsa-key-code] 0203
[H3C-rsa-key-code] 010001
[H3C-rsa-key-code] public-key-code end
[H3C-rsa-public-key] peer-public-key end
[H3C]
# Assign the public key Switch001 to user client001.
[H3C] ssh user client001 assign rsa-key Switch001
2)
Configure Switch A
# Create a VLAN interface on the switch and assign an IP address, which serves as the
SSH client's address in an SSH connection.
<H3C> system-view
[H3C] interface vlan-interface 1
[H3C-Vlan-interface1] ip address 10.165.87.137 255.255.255.0
[H3C-Vlan-interface1] quit
# Generate a RSA key pair
[H3C] rsa local-key-pair create
Chapter 3 SSH Configuration Example
3-15

Advertisement

Table of Contents
loading

Table of Contents