cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
10320
Views
3
Helpful
6
Replies

SSH NOT WORKING

CSCO11921629
Beginner
Beginner

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

pankaj sharma
6 Replies 6

Jason Dance
Beginner
Beginner

Can you post your "line vty" settings?

Sandeep Choudhary
VIP Mentor VIP Mentor
VIP Mentor

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

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

HTH

Rick

line vty 0

transport input ssh telnet

pankaj sharma

Hi Sharma ji,

If your problem is solved then please mark this question as answered.

Dhanyawad

Regards

Hi,

Could you post output of sh run | s aaa

Regards.

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers