CCNA Training » Configure SSH for Remote Access on Cisco Router (2024)

One of the most popular way to access a Cisco router remotely is using Telnet but it is an unsecured method as the data is sent unencrypted. If a bad person grabs data from a Telnet session, he can see details like a user’s username and password, giving them access to your router.

SSH (Secure Shell) is a secure method for remote access as it includes authentication and encryption. To do this, it uses a RSA public/private keypair. In this tutorial we are going to learn how to configure SSH for R1 to accept remote SSH access with the topology below.

CCNA Training » Configure SSH for Remote Access on Cisco Router (1)

Configuration

The first thing we need to do is generating a RSA keypair. The name of the RSA keypair will be the hostname and domain name of the router so we have to configure these two things first.

1. Configure a hostname for the router

Router(config)#hostname R1

2. Configure a domain name

R1(config)#ip domain-name 9tut.com

3. Generate the RSA keypair

This RSA keypair will be used to encrypt the SSH packets with the crypto key generate rsa command.

R1(config)#crypto key generate rsaThe name for the keys will be: R1.9tut.comChoose the size of the key modulus in the range of 360 to 4096 for your General Purpose Keys. Choosing a key modulus greater than 512 may take a few minutes.How many bits in the modulus [512]: 2048% Generating 2048 bit RSA keys, keys will be non-exportable...[OK] (elapsed time was 3 seconds)

The message that is displayed right after we enter this command: “The name for the keys will be: R1.9tut.com”, which combines the hostname of the router along with the domain name we configured to get the name of the encryption key generated; this is why we have to configure hostname and domain name first.

The router also asks to choose a size of modulus for the key we are about to generate. The higher the modulus, the stronger the encryption of the key. For our example, we’ll use a modulus of 2048 which is safe nowadays.

4. Configure VTY lines to use SSH only (Telnet will be refused)

R1(config)#line vty 0 4R1(config-line)#transport input sshR1(config-line)#login local

If for some reasons we still want to allow Telnet along with SSH then we can use the “transport input ssh telnet” instead.

5. Create a username/password in local database on the router

R1(config)#username admin password password_SSH

Verification

1. SSH from another Cisco device

Cisco routers also support a simple SSH client via CLI so we can connect to R1 easily. On R2 we can use the “ssh” command to SSH to R1:

R2#ssh -l admin 192.168.12.1Password: ************ //type "password_SSH' hereR1>

“-l” means we will provide the username (“admin” in this case) along with this parameter.

Yes! we can now SSH to R1!

2. SSH from a computer

A normal computer usually has not supported SSH Client so we need to install one. One of the most popular and free SSH Client software is Putty so we should download and use it.

CCNA Training » Configure SSH for Remote Access on Cisco Router (2)

Suppose we replace R2 with a configured PC. Open Putty and type “192.168.12.1” for the “Host Name” field, Port 22 (SSH) and click “Open” to connect to the router via SSH.

CCNA Training » Configure SSH for Remote Access on Cisco Router (2024)
Top Articles
How To Make Money on Social Media: 8 Ideas for 2024 - Shopify
How to Make Money with Depositphotos
Lengua With A Tilde Crossword
The Atlanta Constitution from Atlanta, Georgia
Belle Meade Barbershop | Uncle Classic Barbershop | Nashville Barbers
1movierulzhd.fun Reviews | scam, legit or safe check | Scamadviser
Words From Cactusi
Craigslist Dog Sitter
Big Y Digital Coupon App
Chase Claypool Pfr
Urinevlekken verwijderen: De meest effectieve methoden - Puurlv
Aita Autism
Urban Dictionary Fov
Ukraine-Russia war: Latest updates
6813472639
10-Day Weather Forecast for Santa Cruz, CA - The Weather Channel | weather.com
Swgoh Blind Characters
Nhl Tankathon Mock Draft
Days Until Oct 8
Morristown Daily Record Obituary
Company History - Horizon NJ Health
Talkstreamlive
Drift Hunters - Play Unblocked Game Online
City Of Durham Recycling Schedule
Preggophili
Wonder Film Wiki
*!Good Night (2024) 𝙵ull𝙼ovie Downl𝚘ad Fr𝚎e 1080𝚙, 720𝚙, 480𝚙 H𝙳 HI𝙽DI Dub𝚋ed Fil𝙼yz𝚒lla Isaidub
The Monitor Recent Obituaries: All Of The Monitor's Recent Obituaries
Duke Energy Anderson Operations Center
Kaiser Infozone
Mobile Maher Terminal
Vitals, jeden Tag besser | Vitals Nahrungsergänzungsmittel
Closest 24 Hour Walmart
Sadie Sink Doesn't Want You to Define Her Style, Thank You Very Much
Stanford Medicine scientists pinpoint COVID-19 virus’s entry and exit ports inside our noses
The Closest Walmart From My Location
Craigslist Ludington Michigan
Yogu Cheshire
Skyward Marshfield
Vindy.com Obituaries
US-amerikanisches Fernsehen 2023 in Deutschland schauen
Craigslist Rooms For Rent In San Fernando Valley
Cleveland Save 25% - Lighthouse Immersive Studios | Buy Tickets
Portal Pacjenta LUX MED
Workday Latech Edu
Blippi Park Carlsbad
Makes A Successful Catch Maybe Crossword Clue
Gummy Bear Hoco Proposal
Urban Airship Acquires Accengage, Extending Its Worldwide Leadership With Unmatched Presence Across Europe
What your eye doctor knows about your health
Philasd Zimbra
Latest Posts
Article information

Author: Rev. Leonie Wyman

Last Updated:

Views: 5967

Rating: 4.9 / 5 (79 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Rev. Leonie Wyman

Birthday: 1993-07-01

Address: Suite 763 6272 Lang Bypass, New Xochitlport, VT 72704-3308

Phone: +22014484519944

Job: Banking Officer

Hobby: Sailing, Gaming, Basketball, Calligraphy, Mycology, Astronomy, Juggling

Introduction: My name is Rev. Leonie Wyman, I am a colorful, tasty, splendid, fair, witty, gorgeous, splendid person who loves writing and wants to share my knowledge and understanding with you.