cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
970
Views
4
Helpful
2
Replies

SSH on routers

thaman303
Level 1
Level 1

Hello,

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

Regards

1 Accepted Solution

Accepted Solutions

Joe Clarke
Cisco Employee
Cisco Employee

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.

View solution in original post

2 Replies 2

Joe Clarke
Cisco Employee
Cisco Employee

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.

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

Regards

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:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco