H3C S7500 Series Ethernet Switches Release 3135 DHCP Configuration Examples
SSH Configuration Examples
H3C S7500 Series Ethernet Switches Release 3135 Chapter 3 SSH Configuration Examples
3-6
[H3C-Vlan-interface1] quit
# Generate an RSA key pair.
[H3C] rsa local-key-pair create
# Set the authentication mode for the user interface to AAA.
[H3C] user-interface vty 0 4
[H3C-ui-vty0-4] authentication-mode scheme
# Enable the user interface to support SSH.
[H3C-ui-vty0-4] protocol inbound ssh
# Set the client’s command privilege level to 3
[H3C-ui-vty0-4] user privilege level 3
[H3C-ui-vty0-4] quit
# Configure the authentication type of the SSH client named “client 001” as RSA.
[H3C] ssh user client001 authentication-type rsa
Note:
Before performing the following steps, you must generate an RSA key pair (using the
client software) on the client, and configure the public key on the server. For details,
refer to Configuring the SSH Client.
# Configure the client’s public key named “Switch001” on the server.
[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]30818702 818100CF 442CE3EC 1119A454 E020AD94 E7D65B09
[H3C-rsa-key-code]B04455B3 9D7BFA99 15670D98 F5D4ACFE B32C4CDF 01DF3C40
[H3C-rsa-key-code]CB55B76C D1A0F5FF 0470414A 0910CAA8 DF4BCBFD 5BA9B4AA
[H3C-rsa-key-code]BF23531A 2A09DBB3 32956441 2E16BFA2 D01607AC 56B82B9A
[H3C-rsa-key-code]D8435E7B 0CBD897F 930A105E 06D91AFB A9F548FC 566A3463
[H3C-rsa-key-code]419AC3E0 A3C26A33 8D9B0C32 ED2D1902 0125
[H3C-rsa-key-code] public-key-code end
[H3C-rsa-public-key] peer-public-key end
# Assign the public key “Switch001” to client “client001”.
[H3C] ssh user client001 assign rsa-key Switch001
2) Configure the SSH client
# Generate an RSA key pair, taking PuTTYGen as example.