387
# Import the client's public key from the public key file
key.pub
and name it
switchkey
.
[Switch] public-key peer switchkey import sshkey key.pub
# Create an SSH user
named
client002
. Specify the authentication method as
publickey
for
the user, and assign the public key
switchkey
to the user.
[Switch] ssh user client002 service-type stelnet authentication-type publickey assign
publickey switchkey
# Create a local device management user named
client002
.
[Switch] local-user client002 class manage
# Authorize local user
client002
to use the
SSH
service.
[Switch-luser-manage-client002] service-type ssh
# Assign the
network-admin
user role to local user
client002
.
[Switch-luser-manage-client002] authorization-attribute user-role network-admin
[Switch-luser-manage-client002] quit
3.
Specify the private key file and establish a connection to the Stelnet server:
a.
Launch PuTTY.exe on the Stelnet client to enter the interface shown in
b.
In the
Host Name
(or IP address)
field, enter the IP address of the Stelnet server
192.168.1.40
.
Figure 105 Specifying the host name (or IP address)
a.
Select
Connection
>
SSH
from the navigation tree.
The window shown in
appears.
b.
Specify the
Preferred SSH protocol version
as
2
.
Содержание FlexFabric 5940 SERIES
Страница 251: ...238 ...