Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document.
Note: Even the most advanced machine translation cannot match the quality of professional translators.
Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).

Example for Configuring the Device as the STelnet Client to
Log In to Another Device

Example for Configuring the Device as the STelnet Client to
Log In to Another Device

Networking Requirements

The enterprise requires
that secure data exchange should be performed between the server and
client. As shown in Figure 4-9, two login
users client001 and client002 are configured and they
use the password and DSA authentication modes respectively to log
in to the SSH server.

Figure 4-9 Networking diagram of logging in to another device through
STelnet

The STelnet V1 protocol poses a security
risk, and therefore the STelnet V2 mode is recommended.

Configuration Roadmap

The configuration
roadmap is as follows:

Generate a local key pair on the SSH server to implement secure
data exchange between the server and client.

Configure different authentication modes for the SSH users client001 and client002 on the SSH server.

Enable the STelnet service on the SSH server.

Configure the STelnet server type for the SSH users client001 and client002 on the SSH server.

Log in to the SSH server as the client001 and client002 users through STelnet.

Procedure

Generate a local key pair on the server.

<HUAWEI> system-view
[HUAWEI] sysname SSH Server
[SSH Server] dsa local-key-pair create
Info: The key name will be: SSH Server_Host_DSA.
Info: The DSA host key named SSH Server_Host_DSA already exists.
Info: The key modulus can be any one of the following : 1024, 2048.
Info: If the key modulus is greater than 512, it may take a few minutes.
Please input the modulus [default=2048]:
Info: Generating keys........
Info: Succeeded in creating the DSA host keys.

<HUAWEI> system-view
[HUAWEI] sysname client002
[client002] dsa local-key-pair create
Info: The key name will be: SSH Server_Host_DSA.
Info: The DSA host key named SSH Server_Host_DSA already exists.
Info: The key modulus can be any one of the following : 1024, 2048.
Info: If the key modulus is greater than 512, it may take a few minutes.
Please input the modulus [default=2048]:
Info: Generating keys........
Info: Succeeded in creating the DSA host keys.