06-05-2012 07:55 PM - last edited on 03-25-2019 04:20 PM by ciscomoderator
Hello ,
I have an switch 2960 and i have made an SSH connection . But the problem is that whenever i try to open with my teraterm or putty it ask for username and after that password but does take the password. It shows an error of password what should be the problem.
Commands that i entered to make SSH
config# username admin password pankaj
config# ip domain-name home.local
config# crypto key generate rsa
config# 1024
config# ip ssh version 2
06-05-2012 08:06 PM
Can you post your "line vty" settings?
06-05-2012 10:15 PM
Hi Pankaj,
Plase try this:
Conf t
line vty 0 4
Login local
Transport input telnet ssh
exit
username admin password pankaj
ip domain name home.local
crypto key generate rsa
1024
ip ssh version 2
If this is not working then please paste your config.
Please rate if it helps.
Thanks
06-06-2012 03:30 AM
The title of this thread is that SSH is not working. But I believe that if you get the prompt for user name and password that SSH is working because if SSH were not establishing the session then there would not be a prompt for user name and password. It sounds like the problem is in authentication (or perhaps authorization). The best way to verify whether SSH is working is to use the command show ip ssh. If it comes back and tells you what version of SSH is enabled (should be version 2 according to your post) then SSH is working.
I agree that it may be helpful to see the configuration of the vty lines. It would also be helpful to see the configuration of aaa.
HTH
Rick
06-06-2012 07:48 PM
line vty 0
transport input ssh telnet
06-06-2012 10:59 PM
Hi Sharma ji,
If your problem is solved then please mark this question as answered.
Dhanyawad
Regards
06-06-2012 11:18 PM
Hi,
Could you post output of sh run | s aaa
Regards.
Alain
Don't forget to rate helpful posts.
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