cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1020
Views
5
Helpful
4
Replies

SSH password

monaassem
Level 1
Level 1

i am configuring ssh under line vty and i have aaa configured and local username and password,

and password under line vty . when i ssh on router from directly connected switch i prompted for only a password which is none of the above passwords !! so what could it  be . any help ??

 

1 Accepted Solution

Accepted Solutions

Yury Kuzminov
Level 1
Level 1

 .....when i ssh on router from directly connected switch i prompted for only a password which is none of the above passwords .....

When you use a built-in ssh client (trying to connect from switch CLI), it use your current username (that you used for connection to this switch) as ssh username, so in this case the router trying to find you in its local databes, and asking just a password. Check the local databases on both devices, users and passwords must be the same for your case.

View solution in original post

4 Replies 4

Jon Marshall
Hall of Fame
Hall of Fame

 

If you have a username and password configured on the device don't configure a password under the vty lines and use "login local" under the vty configuration and you should be prompted for a username and password when logging in. 

 

Jon

i removed password under line vty and still prompted for password only

 

Can you post config ?

 

Jon

 

Yury Kuzminov
Level 1
Level 1

 .....when i ssh on router from directly connected switch i prompted for only a password which is none of the above passwords .....

When you use a built-in ssh client (trying to connect from switch CLI), it use your current username (that you used for connection to this switch) as ssh username, so in this case the router trying to find you in its local databes, and asking just a password. Check the local databases on both devices, users and passwords must be the same for your case.