9 Telnet and SSH
Quidway NetEngine20/20E
Configuration Guide - Basic Configurations
9-34
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 05 (2010-01-30)
Figure 9-7
Networking diagram of connecting the SFTP client to the SSH server
SFTP Client
SSH Server
Configuration Roadmap
The configuration roadmap is as follows:
1.
Configure Clinet001 and Client002 on the router.
2.
Generate the local key pair on the STelnet client and the SSH server respectively.
3.
Enable the STelnet service on the SSH server.
4.
Configure the service type and authorized directory of the SSH user.
Data Preparation
To complete the configuration, you need the following data:
z
Name and the authentication mode of the SSH user
z
Password or the RSA public key of the SSH user
z
Name of the SSH server
Configuration Procedure
Step 1
Generate a local key pair on the server.
See
9.8.2 Step 1
"
Generate a local key pair on the server.
."
Step 2
Create an SSH user on the server.
See
9.8.2 Step 2
"
Create an SSH user on the server.
"
Step 3
Configure the RSA public key on the server.
See
9.8.2 Step 3
"
Configure the RSA public key on the server.
"
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