08-08-2019 07:55 PM
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.
08-08-2019 09:47 PM
hi Eche
08-08-2019 10:46 PM
Hi @echebureche ,
Share the current settings of your device, especially those related to users and vty lines.
Regards
08-09-2019 12:23 AM
Hello
Create a local username and password
conf t
username test secret mypassword
line console 0
login local
line vty 015
login local
08-09-2019 12:24 AM
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
08-09-2019 09:19 AM
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
08-12-2019 08:37 AM
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.
08-12-2019 07:45 PM
08-13-2019 08:27 AM
Glad to know that it is solved. Excellent analysis from @Karsten Iwen and a well deserved +5
HTH
Rick
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide