04-04-2018 04:02 AM - edited 03-08-2019 02:31 PM
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 ??
Solved! Go to Solution.
04-04-2018 06:17 AM
.....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.
04-04-2018 04:18 AM
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
04-04-2018 05:31 AM
i removed password under line vty and still prompted for password only
04-04-2018 05:34 AM
Can you post config ?
Jon
04-04-2018 06:17 AM
.....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.
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