SSH Terminal Service 329
[3Com] user-interface vty 0 4
[3Com-ui-vty0-4] authentication-mode scheme
# Specify the login protocol for user client001 as SSH, the
authentication mode as password.
[3Com-ui-vty0-4] protocol inbound ssh
[3Com] local-user client001
[3Com-luser-client001] password simple 3com
[3Com] ssh user client001 authentication-type password
Note: You can use the default values for SSH authentication timeout and retries.
After completing the above configurations, you can run the SSH 2.0-enabled
client software on any other terminal connected with the switch and access the
switch with the username client001 and password huawei.
RSA public key authentication.
# Set the authentication mode of the user interface to AAA.
[3Com] user-interface vty 0 4
[3Com-ui-vty0-4] authentication-mode scheme
# Specify the login protocol for user client002 as SSH, the
authentication mode as RSA.
[3Com-ui-vty0-4] protocol inbound ssh
[3Com] ssh user client002 authentication-type rsa
3 Using the SSH 2.0-enabled client software, randomly generate an RSA key pair
and send the public key to the server.
4 Configure the public key of the client, and specify the name of the public key as
3com002.
[3Com] rsa peer-public-key 3Com002
[3Com-rsa-public-key] public-key-code begin
[3Com-rsa-key-code] 308186028180739A291ABDA704F5D93DC8FDF84C427463
[3Com-rsa-key-code] 1991C164B0DF178C55FA833591C7D47D5381D09CE82913
[3Com-rsa-key-code] D7EDF9C08511D83CA4ED2B30B809808EB0D1F52D045DE4
[3Com-rsa-key-code] 0861B74A0E135523CCD74CAC61F8E58C452B2F3F2DA0DC
[3Com-rsa-key-code] C48E3306367FE187BDD944018B3B69F3CBB0A573202C16
[3Com-rsa-key-code] BB2FC1ACF3EC8F828D55A36F1CDDC4BB45504F020125
[3Com-rsa-key-code] public-key-code end
[3Com-rsa-public-key] peer-public-key end
[3Com] ssh user client002 assign rsa-key 3com002
5 Start the SSH client software on the terminal preserving the RSA private key, and
perform the corresponding configurations to establish the SSH connection.
SSH Client Configuration
Example
Network requirements
As shown in Figure 102:
â– Switch A is used as an SSH client, and the username is client003.
â– Switch B is used as the SSH server, and the IP address is 10.165.87.136.