12-14-2011 01:29 PM
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
Solved! Go to Solution.
12-14-2011 07:43 PM
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
12-14-2011 07:43 PM
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
12-15-2011 06:18 AM
Correct!!! I forget the aaa configuration.
Thanks!!!
12-15-2011 06:34 AM
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
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: