Got it

Common System Operations : Logging In to a Device Through STelnet

Latest reply: Jul 14, 2017 12:14:28 2484 2 0 0 0

AAA authentication is used as an example. Set the user name to admin123 and password to Huawei@123.

# Generate a local key pair on the server.

<HUAWEI> system-view
[HUAWEI] dsa local-key-pair create
Info: The key name will be: HUAWEI_Host_DSA.
Info: The key modulus can be any one of the following : 512, 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.

# Configure VTY user interfaces on the device.

[HUAWEI] user-interface vty 0 4
[HUAWEI-ui-vty0-4] authentication-mode aaa
[HUAWEI-ui-vty0-4] protocol inbound ssh
[HUAWEI-ui-vty0-4] quit
Common System Operations : Logging In to a Device Through STelnet-1056613-1 NOTICE:

If the protocol supported by VTY user interfaces 0 to 4 is changed from Telnet to SSH, users cannot log in to the device using Telnet after logout. In this case, configure VTY user interfaces 0 to 4 to support all protocols first. Configure STelnet and then run the protocol inbound ssh command to configure VTY user interfaces 0 to 4 to support SSH.

# Create an SSH user named admin123 and configure the password authentication mode for the user.

[HUAWEI] aaa
[HUAWEI-aaa] local-user admin123 password irreversible-cipher Huawei@123
[HUAWEI-aaa] local-user admin123 service-type ssh
[HUAWEI-aaa] local-user admin123 privilege level 15
[HUAWEI-aaa] quit
[HUAWEI] ssh user admin123 authentication-type password

# Enable the STelnet service.

[HUAWEI] stelnet server enable

# Configure the STelnet service type for the user admin123.

[HUAWEI] ssh user admin123 service-type stelnet

# Log in to the device using the third-party software (such as PuTTY). Enter the device IP address, select SSH, and enter the user name and password to log in to the device through STelnet.

To verify the STelnet login, run the ssh client first-time enable and stelnet commands in system view to log in to the device. If the login page is displayed, the configuration succeeds. If the login page is not displayed, the configuration fails.




  • x
  • convention:

Created Apr 19, 2016 05:58:46

View more
  • x
  • convention:

Created Jul 14, 2017 12:14:28

S5720SI. Tell me please, I'm already tired to look. The documentation says to use "sshkey.exe" to convert the generated public key to the character string required for the device.
Where can I get this "sshkey.exe"?
View more
  • x
  • convention:


You need to log in to comment to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits


Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Please bind your phone number to obtain invitation bonus.