0% found this document useful (0 votes)
11 views4 pages

SSH Execution

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views4 pages

SSH Execution

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

14.

SSH EXECUTION
Practical Execution: Use Telnet to Login a Remote
Machine and Connect Remote Machine Using Secure
Shell (SSH)

Telnet Configuration Steps

Step-by-Step Execution (GUI Method)

1. Launch Cisco Packet Tracer:


Open Cisco Packet Tracer software.
2. Create a Basic Network Topology:
Drag and drop PCs, Switch, and Router onto the workspace.
Connect PC1 and PC2 to the Switch using Copper Straight-Through cables.
Connect the Switch to the Router with Copper Straight-Through cables.
3. Configure IP Addresses:
Assign IP addresses to PC1 and PC2 in the Config tab, and configure the Router
interfaces.
Example: PC1: IP Address: 192.168.1.2, Subnet: 255.255.255.0, Default Gateway:
192.168.1.1
PC2: IP Address: 192.168.1.3, Subnet: 255.255.255.0, Default Gateway:
192.168.1.1
Router: Assign IPs to the router interfaces (e.g., 192.168.1.1/24 for LAN).
4. Configure Telnet on Router:
Access the Router CLI and enter the following commands to enable Telnet access:

Router> enable
Router# configure terminal
Router(config)# line vty 0 4
Router(config-line)# password cisco123
Router(config-line)# login
Router(config-line)# exit
Router(config)# username admin password admin123
Router(config)# ip domain-name cisco.com
Router(config)# crypto key generate rsa
Router(config)# ip telnet server enable

5. Test Telnet Connection from PC1:


On PC1, open the Command Prompt.
Use the following command to access the Router using Telnet:
Telnet 192.168.1.1

Log in using the username and password set earlier (e.g., admin/admin123).

SSH Configuration Steps


Step-by-Step Execution (GUI Method)

1. Configure SSH on the Router:


On the Router, enter the following commands to enable SSH:

Router> enable
Router# configure terminal
Router(config)# hostname Router
Router(config)# ip domain-name cisco.com
Router(config)# crypto key generate rsa modulus 1024
Router(config)# ip ssh version 2
Router(config)# username admin password admin123
Router(config)# line vty 0 4
Router(config-line)# login local
Router(config-line)# transport input ssh
Router(config-line)# exit

This configures the router to use SSH for remote access.


2. Verify SSH Configuration:
On PC1, open the Command Prompt and use the SSH command to log into the
Router:

SSH 192.168.1.1

Enter the username and password (e.g., admin/admin123) when prompted.

Telnet Configuration Steps (CLI Method)


1. Configure Telnet on Router (CLI):
Access the Router CLI and enable Telnet by configuring the following commands:

Router> enable
Router# configure terminal
Router(config)# line vty 0 4
Router(config-line)# password cisco123
Router(config-line)# login
Router(config-line)# exit
Router(config)# username admin password admin123
Router(config)# ip domain-name cisco.com
Router(config)# crypto key generate rsa
Router(config)# ip telnet server enable

2. Log into Router via Telnet from PC1 (CLI):


On PC1, open the Command Prompt and use the following Telnet command:

Telnet 192.168.1.1

Enter the username and password to log in.

SSH Configuration Steps (CLI Method)


1. Configure SSH on Router (CLI):
Access the Router CLI and enable SSH by entering the following commands:

Router> enable
Router# configure terminal
Router(config)# hostname Router
Router(config)# ip domain-name cisco.com
Router(config)# crypto key generate rsa modulus 1024
Router(config)# ip ssh version 2
Router(config)# username admin password admin123
Router(config)# line vty 0 4
Router(config-line)# login local
Router(config-line)# transport input ssh
Router(config-line)# exit

2. Log into Router via SSH from PC1 (CLI):


On PC1, open the Command Prompt and enter the following SSH command:

SSH 192.168.1.1

Enter the username and password to log into the Router.

Verification and Troubleshooting


1. Verify Telnet:
On PC1, after Telnetting to the Router, check if you have access to the Router CLI.
If the connection is unsuccessful, ensure the router's Telnet server is enabled and
correct IP addressing is in place.
2. Verify SSH:
On PC1, after SSHing to the Router, ensure that you are able to access the Router
securely.
If SSH fails, check the router’s SSH configuration and ensure that the crypto key was
generated successfully.

Summary of Key Commands:

Step Command (CLI)

Enable Telnet on Router(config)# line vty 0 4 Router(config-line)# password


Router cisco123 Router(config-line)# login Router(config)# ip telnet
server enable
Telnet Login to Telnet 192.168.1.1
Router from PC1
Enable SSH on Router(config)# ip domain-name cisco.com Router(config)# crypto
Router key generate rsa modulus 1024 Router(config)# ip ssh version 2
SSH Login to SSH 192.168.1.1
Router from PC1

© 2024 by 42_Daksh (♔). All rights reserved.


These notes and study materials are the intellectual property of 42_Daksh (♔). Unauthorized use
is prohibited, Unauthorized reproduction, distribution, or modification is prohibited.

For permissions or inquiries, please contact the creator directly(dakshrmaurya@gmail.com)

Tracking Notice: This document includes digital markers and unique identifiers.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy