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

Not asking for USERNAME and PASSWORD upon SSH login.

echebureche
Level 1
Level 1

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

dodo
Level 1
Level 1

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

luis_cordova
VIP Alumni
VIP Alumni

Hi @echebureche ,

 

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

 

Regards

Hello

Create a local username and password

conf t

username test secret mypassword

line console 0
login local


line vty 015

login local


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

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

 

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

HTH

Rick

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.

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

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

 

HTH

 

Rick

HTH

Rick
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card