Username option -l using ssh and putty

Dragon0x40 used Ask the Experts™
I was trying to ssh to a switch from an open putty session on my current switch but I just typed "ssh x.x.x.x" and all I got was a password prompt. When I entered my password it was not accepted. I tried several times.

My TACACS account was locked out.

I should have been typing "ssh -l my_username x.x.x.x" pressing enter and then entering my TACACS password.

My question is how did TACACS know to lock out my account if I was not putting my username in the ssh command?

And if TACACS did know my username then why would it not accept my password?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Senior infrastructure engineer
Top Expert 2012
When not using -l the username with which you are logged on to the current device is used. So if that's a different username you'll get an error.


I only have one username and one password that I use for TACACS. I am not sure how the switch would get a different username. Is there a default username when you don't specify one? If so why was my TACACS username locked out?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial