Comware Based
1748121 Members
3336 Online
108758 Solutions
New Discussion юеВ

ssh key authentication

 
SOLVED
Go to solution
Anny42
Regular Visitor

ssh key authentication

Hello everyone,

I would like to know how to enable key authentication and password authentication for the same user on Switch 5500-48G-4SF.

I have already set:

ssh user "user_name" service-type all authentication-type any assign publickey "name_of_key" work-directory flash:/S

At this moment I can log in with key and password but the priority level are different for the same user.

key authentication:
"xyz"?

User view commands:
cfd Connectivity fault detection (IEEE 802.1ag)
cluster Run cluster command
display Display current system information
ping Ping function
quit Exit from current command view
ssh2 Establish a secure shell client connection
super Set the current user priority level
telnet Establish one TELNET connection
tracert Trace route function

"xyz"super
Error: Password is not set.

When I login with the same user and password, the authentification is already max.

Did someone have the same problem and have a solution?

Thank you very much!

2 REPLIES 2
Anny42
Regular Visitor

Re: ssh key authentication

All SSH users that connect with the RSA authentication on the VTY interfaces will inherit the privilege level configured under the VTY interface, despite the level configured in the AAA view .

The privilege level configured under VTY by default is 0.

The solution is to configure the user privilege level under the VTY interfaces.

syntax:

user-interface vty "0" "4"       

user privilege level "3"

akg7
HPE Pro
Solution

Re: ssh key authentication

Hello,

 

Are you still facing issue?

 

You are correct  it works fine if set the authentication mode and default user role in the config

 

Thanks!

Note: While I am an HPE Employee, all of my comments (whether noted or not), are my own and are not any official representation of the companyAccept or Kudo