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. And see here for current known issues.

New Member

SSH on routers

Hello,

I am new to routing switching. Can some one guide me how to configure SSH on routers?

Regards

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: SSH on routers

First you need a crypto image. Check to see that you have a k9 feature set (e.g. ipservicesk9). Then, make sure you have a hostname and domain name configured:

hostname core-router

ip domain-name company.com

Then you need to generate you RSA certificate:

crypto key generate rsa

When it prompts you for a modulus, choose one that is at least 1024 for best compatibility.

Next, configure a local username. If you are already using AAA you can skip this step:

aaa new-model

aaa authentication login default local

username sshuser password sshuser!@#

Finally, checkout the optional "ip ssh" commands to see if any of them are needed for your setup. However, at this point, you should be able to ssh to your router as sshuser (or whatever AAA users you have available).

See http://www.cisco.com/en/US/products/sw/iosswrel/ps1835/products_configuration_guide_chapter09186a00800ca7d5.html#wp1007881 for the complete list of instructions.

2 REPLIES
Cisco Employee

Re: SSH on routers

First you need a crypto image. Check to see that you have a k9 feature set (e.g. ipservicesk9). Then, make sure you have a hostname and domain name configured:

hostname core-router

ip domain-name company.com

Then you need to generate you RSA certificate:

crypto key generate rsa

When it prompts you for a modulus, choose one that is at least 1024 for best compatibility.

Next, configure a local username. If you are already using AAA you can skip this step:

aaa new-model

aaa authentication login default local

username sshuser password sshuser!@#

Finally, checkout the optional "ip ssh" commands to see if any of them are needed for your setup. However, at this point, you should be able to ssh to your router as sshuser (or whatever AAA users you have available).

See http://www.cisco.com/en/US/products/sw/iosswrel/ps1835/products_configuration_guide_chapter09186a00800ca7d5.html#wp1007881 for the complete list of instructions.

New Member

Re: SSH on routers

Thanks Joe, That would be very helpful in getting started.

Regards

176
Views
4
Helpful
2
Replies