![Huawei Quidway NetEngine80 Скачать руководство пользователя страница 201](http://html.mh-extra.com/html/huawei/quidway-netengine80/quidway-netengine80_configuration-manual_169456201.webp)
9 Telnet and SSH
Quidway NetEngine80
Configuration Guide - Basic Configurations
9-40
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 04 (2009-12-20)
Step 4
Bind the RSA public key of the SSH client to Client002.
[Quidway]
ssh user client002 assign rsa-key RsaKey001
Step 5
Enable the STelnet service on the SSH server.
# Enable the STelnet service.
[Quidway]
sftp server enable
Step 6
Configure the service type and authorized directory of the SSH user.
Two SSH users are configured on the SSH server: Client001 and Client002. The password
authentication is configured for Client001 and the RSA authentication is configured for
Client002.
<Quidway>
system-view
[Quidway]
ssh user client001 service-type sftp
[Quidway]
ssh user client001 sftp-directory cfcard:
[Quidway]
ssh user client002 service-type sftp
[Quidway]
ssh user client002 sftp-directory cfcard:
Step 7
Connect the STelnet client to the SSH server.
# When you log in for the first time, enable the first-time authentication for the SSH client.
[client]
ssh client first-time enable
# Connect the STelnet client001 to the SSH server in the password authentication.
<client001>
system-view
[client001]
sftp 10.164.39.222
Please input the username:client001
Trying 10.164.39.222 ...
Press CTRL+K to abort
Connected to 10.164.39.222 ...
Enter password:
sftp-client>s
# Connect the STelnet client002 to the SSH server in the RSA authentication.
<client002>
system-view
[client002]
sftp 10.164.39.222
Please input the username: client002
Trying 10.164.39.222 ...
Press CTRL+K to abort
Connected to 10.164.39.222 ...
sftp-client>
Step 8
Verify the configuration.
After the configuration, run the
display ssh server status
and
display ssh server session
commands. You can view that the STelnet service is enabled and the SFTP client is connected
to the SSH server successfully.
# Display the SSH status.
[Quidway]
display ssh server status
SSH version : 1.99
SSH connection timeout : 60 seconds
SSH server key generating interval : 0 hours