The switch has an error in the stelnet

Created: Oct 31, 2019 01:41:04Latest reply: Oct 31, 2019 01:44:40 53 1 0 0
  Rewarded Hi-coins: 0 (problem resolved)

Hello guys

My S5700 switch stelnet will report an error but can enter the password to log in.

Error message:

[huawei]stelnet X.X..0.1

Please input the username:admin

TryingX.X.0.1 ...

Press CTRL+K to abort

Connected toX.X.0.1 ...

Enter password:

Apr  2 2000 03:38:49 RQ-31F-D-S5720S %%01SSH/4/SSH_FAIL(s)[4]:Failed to
login through SSH. (IP=127.0.0.1, VpnInstanceName= , UserName=admin, Times=1,
FailedReason=User public key authentication failed)

Info: The max number of VTY users is 10, and the number

      of current VTY users on line is 1.

      The current login time is 2000-04-02
03:44:37+00:00.
<huawei>sys

Configuration information:

ecc peer-public-key X.X.0.1 encoding-type der
 public-key-code begin
    04000E28 14D2B2AD 9A9C7C4B C74E4169 058091FD 475B7712 5279EC98 36B1F5DC
    2DFCEFC0 8EDF82DD 83C78A1B 52D92B2B 51E6B535 B844F278 518C5F96 FE5EE642
    CBCC9200 18140E18 6C535D73 96DD3442 994008B1 5584023C 137F0C48 7E99A79F
    8BDF5B28 9AA8F577 63A48506 E75AD96F 79870277 8EA3878F 313C8945 C22BFF2B
    BD9FB360 BF
 public-key-code end
peer-public-key end

 

 local-user admin password irreversible-cipher $1a$QG2-.W$y9'$h9$W<Hwg.;/(e<K*>8~GGfCKD;6pl0fN9k.8*0]<$
 local-user admin privilege level 0       
 local-user admin service-type terminal ssh http

 

stelnet server enable
ssh user admin
ssh user admin authentication-type all
ssh user admin service-type stelnet
ssh client first-time enable
ssh client X.X.0.1 assign ecc-key X.X.0.1

 

user-interface vty 0
 authentication-mode aaa

Can you help me

  • x
  • convention:

Featured Answers
jason_hu
Admin Created Oct 31, 2019 01:44:40 Helpful(0) Helpful(0)

Hello@listena
The configuration is no problem. The reason for this problem is: if the telnet's own address on the switch is not authenticated, and the device will use the public key authentication method by default after the public key is used, the account is not equipped with this. In this way, you will get an error, and then you can use other methods, such as password, to authenticate successfully, so you can log in. When the device itself telnets itself, the device side uses RSA authentication by default. If the authentication fails, the configuration mode, such as password, is used for authentication
  • x
  • convention:

All Answers
jason_hu
jason_hu Admin Created Oct 31, 2019 01:44:40 Helpful(0) Helpful(0)

Hello@listena
The configuration is no problem. The reason for this problem is: if the telnet's own address on the switch is not authenticated, and the device will use the public key authentication method by default after the public key is used, the account is not equipped with this. In this way, you will get an error, and then you can use other methods, such as password, to authenticate successfully, so you can log in. When the device itself telnets itself, the device side uses RSA authentication by default. If the authentication fails, the configuration mode, such as password, is used for authentication
  • 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