Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

no connection via ssh 2

Im trying to connect to my router via ssh 2 but ssh authentication doesn't allow me.

These are the commands that I'm using:

switch(config)#username joseph password cisco

switch(config)#ip domain-name usa.com

switch(config)#crypto key generate rsa

1024

switch(config)#ip ssh version 2

switch(confg)#line vty 0 4

switch(config-line)#transport input telnet ssh

Any help is welcome

Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Super Silver

no connection via ssh 2

Jose

The parts of the config seem reasonable (assuming that there would have been no error messages as they were entered). It looks like SSH ver 2 should be enabled. The output of show ip ssh from the router/switch would confirm this.

So my first question is can you verify that you do have IP connectivity from where you are attempting to do ssh to the router/switch? (probably  verifying that a ping to the router/switch is successful would be a good test of this)

My second question is can you tell us whether the vty lines are configured with any access-class? And if there is an access class then what IP address space does it permit, and is your source device within that address space?

My third question is whether the router/switch has any aaa configured? If so can you tell us details of what is configured?

HTH

Rick

3 REPLIES
Hall of Fame Super Silver

no connection via ssh 2

Jose

The parts of the config seem reasonable (assuming that there would have been no error messages as they were entered). It looks like SSH ver 2 should be enabled. The output of show ip ssh from the router/switch would confirm this.

So my first question is can you verify that you do have IP connectivity from where you are attempting to do ssh to the router/switch? (probably  verifying that a ping to the router/switch is successful would be a good test of this)

My second question is can you tell us whether the vty lines are configured with any access-class? And if there is an access class then what IP address space does it permit, and is your source device within that address space?

My third question is whether the router/switch has any aaa configured? If so can you tell us details of what is configured?

HTH

Rick

New Member

Re: no connection via ssh 2

Correct!!! I forget the aaa configuration.

Thanks!!!

Hall of Fame Super Silver

Re: no connection via ssh 2

Jose

I am glad that my suggestions did help you to identify and correct the problem. Thank you for using the rating system to mark this question as answered (and thanks for the points). It makes the forum more useful when people can read about an issue and can know that a solution was found. Your marking has contribued to this process.

HTH

Rick

449
Views
5
Helpful
3
Replies