cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
274
Views
5
Helpful
8
Replies
Beginner

Not asking for USERNAME and PASSWORD upon SSH login.

Hi All, Please help me because my device is not asking for my Username and Password every time I access my cisco device. All I have to do is enable and input enable password. How can I make it ask my password every time I access thru SSH.

8 REPLIES 8
Beginner

Re: Not asking for USERNAME and PASSWORD upon SSH login.

hi Eche

 
Please let me know me, the effect of the problem for all in-band-Management? or just a problem with SSH connections
 
thanks
Advocate

Re: Not asking for USERNAME and PASSWORD upon SSH login.

Hi @echebureche ,

 

Share the current settings of your device, especially those related to users and vty lines.

 

Regards

VIP Advisor

Re: Not asking for USERNAME and PASSWORD upon SSH login.

Hello

Create a local username and password

conf t

username test secret mypassword

line console 0
login local


line vty 015

login local



kind regards
Paul

Please rate and mark posts accordingly if you have found any of the information provided useful.
It will hopefully assist others with similar issues in the future
VIP Mentor

Re: Not asking for USERNAME and PASSWORD upon SSH login.

Hello,

 

are you using AAA or local authentication ?

 

The reason your device only asks for a password and not a username is because your VTY lines are (probably) configured like this:

 

line vty 0 4
privilege level 15
password cisco
login
transport input all

 

If you want the device to ask for a username AND password, you need to configure one locally first:

 

R1(config)#username admin privilege 15 password 0 cisco

 

and then configure the lines like this:

 

line vty 0 4
login local
transport input all

 

Hall of Fame Master

Re: Not asking for USERNAME and PASSWORD upon SSH login.

You can also get that result by configuring aaa new-model. With aaa new-model the default becomes local authentication.

 

I agree that to answer the original question we need details about how that device was configured.

 

HTH

 

Rick

VIP Mentor

Re: Not asking for USERNAME and PASSWORD upon SSH login.

I would expect that the problem is on the client-side. Best to try it with a different PC or SSH-client. Probably you have the login-user and password saved in the SSH-profile.

If the network device is not configured for local authentication it should not accept the connection at all.

Beginner

Re: Not asking for USERNAME and PASSWORD upon SSH login.

Found it sir, now I don’t tick the “save password” option when I save sessions on ssh client.
Highlighted
Hall of Fame Master

Re: Not asking for USERNAME and PASSWORD upon SSH login.

Glad to know that it is solved. Excellent analysis from @Karsten Iwen and a well deserved +5

 

HTH

 

Rick

CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards