22
Sep

Configuring SSH for IPv6

Written by bcarroll  |  under General Networking

As promised, here is a short IPv6 post. Actually, there isn’t much about this that’s IPv6-centric other then the address that I SSH to in the second to last step. At any rate, there are more tutorials to come. Enjoy!

Created with a trial version of ScreenSteps

In this short tutorial you will learn how easy SSH can be configured for use with IPv6 addresses.

Configure The Domain Name

media_1285178742266.png

Begin by configuring the domain-name on the router that will be accepting SSH connections. This domain-name is used in the next step where RSA keys are generated.

Generate RSA Key Pairs

media_1285178821675.png

Next generate the RSA key pairs that will be used by SSH.

Configure SSH v2

media_1285178885825.png

Using the command "ip ssh version" enable the use of SSH version 2.

Enter the VTY lines

media_1285178992902.png

Enter line configuration mode. In here you will be configuring the transport for SSH as well as defining the options for authentication.

Configure Authentication for the VTY

media_1285179136511.png

In this example we will use the local database for authentication. At the moment there is no username in the database, so we will go back and configure that later. For now, lets just enable local authentication.

Modify the Privilege Level (Optional)

media_1285179230750.png

For ease of use in a lab environment we can configure the VTY to place us at privilege level 15 once we authentication. I would not recommend this in a production environment.

Exit Line Configuration Mode

media_1285179310896.png

Now we need to back out of line configuration mode and configure the user in the local database.

Create a Local User

media_1285179394866.png

You can create a pretty extensive local database of users however it doesnt scale. It’s usually preferable to use an AAA server like Cisco ACS. In this case we keep it simple and create the user cisco with a password of cisco. The user is also given privilege level 15.

SSH to the SSH Server Router

media_1285179452488.png

From another router in your lab use the "ssh" command to connect to R3 (in our case). Notice that -l denotes the username that was configured on R3 in the local database, and -v denotes the version of ssh that we wish to use. Enter the password "cisco" to authenticate.

Verify The Connection

media_1285179897047.png

Back on R3 use the "show ssh" command to verify the SSH connection from R2.

Leave a feedback:

Name (required)

Email (required)

Website

Comments

2010 (c) Ascolta's Blog, Using the Minimalistic Theme : Powered by WordPress