How to configure SSH on your router

[taken from IE VOL1 workbook]

It’s best to only allow SSH access on your VTY ports. Here’s how you can do it:

1) Configure a domain name on your router:

Rack1R4(config)#ip domain-name internetworkexpert.com

2) Generate the keys:

Rack1R4(config)#crypto key generate rsa general-keys modulus 512

3) Configure the VTY ports with SSH access only:

Rack1R4(config)#line vty 0 4

Rack1R4(config-line)#transport input ssh

4) enable local login for your VTY ports:

Rack1R4(config-line)#login local

5) Don’t forget to configure a local username/password

Rack1R4(config)#username CISCO password CISCO

[make sure you also have an enable password configured]

THAT’S IT!

-qospf

Advertisements

2 thoughts on “How to configure SSH on your router

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s