HPE FlexFabric 7900 Series Security Configuration Manual page 174

Hide thumbs Also See for FlexFabric 7900 Series:
Table of Contents

Advertisement

# Enable the Stelnet server.
[SwitchB] ssh server enable
# Assign an IP address to VLAN-interface 2. The Stelnet client uses this address as the
destination address of the SSH connection.
[SwitchB] interface vlan-interface 2
[SwitchB-Vlan-interface2] ip address 192.168.1.40 255.255.255.0
[SwitchB-Vlan-interface2] quit
# Set the authentication mode to AAA for the user lines.
[SwitchB] line vty 0 63
[SwitchB-line-vty0-63] authentication-mode scheme
[SwitchB-line-vty0-63] quit
# Create a local device management user client001.
[SwitchB] local-user client001 class manage
# Set the password to aabbcc in plain text for the local user client001.
[SwitchB-luser-manage-client001] password simple aabbcc
# Authorize the local user client001 to use the SSH service.
[SwitchB-luser-manage-client001] service-type ssh
# Assign the user role network-admin to the local user client001.
[SwitchB-luser-manage-client001] authorization-attribute user-role network-admin
[SwitchB-luser-manage-client001] quit
# Create an SSH user client001, and specify the service type as stelnet and the authentication
method as password for the user.
[SwitchB] ssh user client001 service-type stelnet authentication-type password
2.
Establish a connection to the Stelnet server 192.168.1.40:
# Assign an IP address to VLAN-interface 2.
<SwitchA> system-view
[SwitchA] interface vlan-interface 2
[SwitchA-Vlan-interface2] ip address 192.168.1.56 255.255.255.0
[SwitchA-Vlan-interface2] quit
[SwitchA] quit
Before establishing a connection to the server, you can configure the server's host public key
on the client to authenticate the server.
To configure the server's host public key of the server on the client, perform the following
tasks:
# Use the display public-key local dsa public command on the server to display the
server's host public key.
# Enter public key view of the client and copy the host public key of the server to the client.
[SwitchA] public-key peer key1
Enter public key view. Return to system view with "peer-public-key end" command.
[SwitchA-pkey-public-key-key1]308201B73082012C06072A8648CE3804013082011F028181
0
0D757262C4584C44C211F18BD96E5F0
[SwitchA-pkey-public-key-key1]61C4F0A423F7FE6B6B85B34CEF72CE14A0D3A5222FE08CEC
E
65BE6C265854889DC1EDBD13EC8B274
[SwitchA-pkey-public-key-key1]DA9F75BA26CCB987723602787E922BA84421F22C3C89CB9B
0
6FD60FE01941DDD77FE6B12893DA76E
166

Advertisement

Table of Contents
loading

Table of Contents