cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
11420
Views
5
Helpful
6
Replies

Access Denied SSH, But I can Login through the Web interface . HELP!

Kchen_3
Level 1
Level 1

Question: 

For some reason, I am login through the web interface for our Cisco 2960X, and I got "Access denied" when I used Putty to SSH the Cisco 2960x. Any Sugguestion that what can do at the moment? Thank you! 

2 Accepted Solutions

Accepted Solutions

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

Sounds like your vty config is using a different authentication method to your http-server.

 

Can you share the running-config of the switch?

 

cheers,

Seb.

View solution in original post

the reason you can get the web interface is because by default http is on.

in order for you to get the ssh in to a cisco 2960X.

!

hostname SW

!

ip domain-name xxxxx.com   (whatever your organistaion domain put it here)

!

crypto key gen rsa label switch2960 module 1024

!

ip ssh version 2

!

username admin password cisco

!

line vty 0 10

 transport input ssh

 login local

 

please do not forget to rate.

View solution in original post

6 Replies 6

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

Sounds like your vty config is using a different authentication method to your http-server.

 

Can you share the running-config of the switch?

 

cheers,

Seb.

At the moment, I only can access with Telnet to the SW. And I'm not Network person. How can I get the running config with Telnet? 

the reason you can get the web interface is because by default http is on.

in order for you to get the ssh in to a cisco 2960X.

!

hostname SW

!

ip domain-name xxxxx.com   (whatever your organistaion domain put it here)

!

crypto key gen rsa label switch2960 module 1024

!

ip ssh version 2

!

username admin password cisco

!

line vty 0 10

 transport input ssh

 login local

 

please do not forget to rate.

In term of the command that you just provided, How am I going to enter it? ( "Access Denied" when I used my admin account in PUTTY-SSH)

ip domain-name xxxxx.com   (whatever your organistaion domain put it here)

!

crypto key gen rsa label switch2960 module 1024

!

ip ssh version 2

!

username admin password cisco

!

line vty 0 10

 transport input telnet ssh

 login local

 

 

 

now as you have access to box via telnet if you apply the above config you will have acess to the box also with telnet and with ssh.

please do not forget to rate.

By the end, I ended up entering the password recovery mode and reset the password. And following by the Cisco command that you provide it. issue resolved. Thanks!