When using SSH, why it doesn’t ask for a username and it’s corresponding password

ssh

Here is the running-config for the line vty:

line vty 0 4
password 1111
login local
transport input ssh
line vty 5 15
password 1111
login local
transport input ssh

However, when I type ssh -l domain-name ip-address, the cmd will show:

Open
Password:

Since it is in login local, it should ask for a user account, but it doesn't. Also, it accepts the password "1111", when as far as I know, should only be accepted if it is in login only.

Best Answer

You provide credentials for

login local 

with

username joe secret blah

or

aaa new-model
aaa authentication login default enable

The password alone lets you because you set it in line context and it falls through as old style vty login....`