Common System Operations : Logging In to a Device Through STelnet

Latest reply: Jul 14, 2017 12:14:28 2157 2 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 127.0.0.1 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:

user_1763575
Created Apr 19, 2016 05:58:46 Helpful(0) Helpful(0)

Thanks!
  • x
  • convention:

uncleshi1
Created Jul 14, 2017 12:14:28 Helpful(1) Helpful(1)

Hello
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"?
  • x
  • convention:

Comment

Reply
You need to log in to reply to the post Login | Register

Notice 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 " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Login and enjoy all the member benefits

Login and enjoy all the member benefits

Login