Как подключиться по ssh cisco packet tracer

от admin

Configure Telnet and SSH on Cisco Packet Tracer

To enable telnet or SSH on Cisco router, simply do it with “line vty” command. lets Configure:

First create topology Network. and set a static IP for PC client, router and switch. See the picture below.

Go to Router0 console and configure Hostname, Secret password and telnet with “line vty” command.

file.png

  • Enable secret ‘your password’” command for your router password user privileges.
  • The “line vty” command enable the telnet and the “0″ is just let a single line or session to the router. If you need more session simultaneously, you must type “line vty 0 10“, its mean 11 client can access telnet.
  • The “logging synchronous” command stops any message output from splitting your typing.

The “exec-timeout” command just sets the time-out limit on the line from the default to “10″ minutes.

Testing Telnet Connectivity.

Let’s test telnet from the admin or client PC. Type telnet 192.168.1.1 and press enter, then enter the telnet username & password. Next type enable command and press enter, then type the router password.

file.png

Now you are remotely connected to router R1 and you can execute all router commands through telnet command line interface.

SSH Configuration.

file.png

    line vte 1 3” <

service password-encryption <

encrypt your SSH password.

Testing SSH Connectivity

From a client PC, open the command line and type “ssh -l budi 192.168.1.1” then press enter.

file.png

Now we have connected successfully and the connection is secured with Secure Shell.

How to Configure SSH in Cisco Packet Tracer

updateiconLast Updated: January 15, 2020 , Tolga Bagci

SSH (Secure Shell) provides secure management of network devices. By using SSH, you establish a secure connection to a network device that you access, and your data is sent in encrypted form.

How to Configure SSH in Cisco Packet Tracer

How to Enable SSH in Cisco Router with Packet Tracer

SSH is a much safer protocol than the Telnet protocol and uses the TCP 22 port by default. The port number may vary.

There are 2 versions of the SSH protocol. These; Version 1 and Version 2.

SSH V1 exploits several patented encryption algorithms and is vulnerable to a well-known vulnerability that could allow an attacker to enter data into the communication flow.

SSH V2, this release has an advanced key exchange algorithm that is not vulnerable to the same abuse and includes more powerful and comprehensive features:

• Encryption such as 3DES and AES.
• Use voice encryption Message Verification Code (MAC) algorithms for integrity checking.
• Support for public-key certificates.

We recommend that you use SSH V2 as far as possible to remotely manage network devices.

To enable SSH in the real scenario, make sure that the file name of your Cisco IOS software is k9 (crypto).

Step 1

First, run Packet Tracer and then create a network topology as shown in the image below. Add an additional Router to the workspace, because after configuration we will connect the Router to the Router with SSH.

SSH Connection from Router to Router

Step 2

Open the CLI prompt by clicking on the SYSNETTECH Router and press Enter to skip the initial configuration.

IOS Command Line Interface

Step 3

To enable SSH on the router, perform the following commands in order.

Enabling SSH on the Router

Step 4

Configure the IP settings of PC1 as follows.

Configure TCP/IP Settings for PC1

Step 5

To quickly configure the R1’s interface, double-click on it, click the Config tab in the window that opens, and then configure the Port Status option of the GigabitEthernet0/0 interface to On, then assign the IP address.

Assigning an IP Address to the Router

Step 6

To test whether SSH is running, open the PC1 prompt and establish a connection using the command below.

ssh -l cisco 192.168.1.1

Step 7

Enter the user name and password you created, and as soon as you press Enter, the connection will be established as in the image below.

Connected from PC to Router with SSH

Step 8

After executing the show ssh command on PC1 Command Prompt, you can check the version of the SSH protocol that is linked.

Using the show ssh command on the router

Step 9

In this step, execute the following command to make SSH from router to router.

Router Command Interface

Step 10

In the same way, enter the user account information you created on the Cisco Router and press Enter.

Using the SSH Command on the Router

Step 11

As you can see in the image below, a successful SSH connection is made.

Connection to Router Successful

Show Commands

Video

With the simulator, you can watch the video below to enable SSH on the router and connect from the PC and also subscribe to our YouTube channel to support us!

Final Word

In this article, after examining how to enable SSH, we have connected with SSH from PC to Router and Router to Router to verify the connection. In the real scenario, to configure SSH on Routers, make sure the IOS image has k9 (crypto). Thanks for following us!

Related Articles

Hello, I’m Tolga! I am a computer specialist who has been specializing in computer technologies for about 20 years. I provide solutions to problems encountered in many areas such as hardware, system, network, virtualization, server systems, and operating systems, and create relevant content on my website by explaining how to solve these problems. My goal is to be a reliable source of expert, quality, and trustworthy solutions for your computer problems. By following innovations and using the latest technologies, I aim to be successful in my job and provide you with the best service. Don’t hesitate to contact me for any questions or curiosity about technology. Have a nice day, stay up to date 🙂

SSH Configuration on Packet Tracer

ssh-config-ipcisco

SSH (Secure Shell) is one of the most used protocols in network World. As a secured alternative of Telnet, SSH is always in the life of a network engineer. It helps us to connect our routers, swithces and any other network equipments. Especially because of SSH is more secure, it is always prefered more than Telnet. In this lesson, we will focus on SSH Configuration on Cisco routers with an SSH Config Example. We will learn configuring SSH.

ssh-config-ipcisco

So, what will be our SSH Config steps? In this example, we will go through the below six steps one by one:

  1. IP Configurations
  2. Password Encryption
  3. Router Name Change
  4. Domain Data and Data Encryption
  5. Router User Config
  6. SSH Config
  7. SSH Verification

So, let’s start SSH Configuration and see how is the backplane config of our SSH connection on routers.

IP Configurations

Before configuring SSH, firstly, we will configure IP addresses of router interface and the PC. We will use the below IP addresses:

Router fa0/0 Interface

Router # configure terminal

Router (config) # interface fa0/0

Router (config-if) # ip address 10.0.0.1 255.255.255.0

Router (config-if) # no shutdown

Router Name Change

We need to change the default router name to generate rsa key. Here, the default name is Router, let’s change this name to ABC.

Router (config) # hostname ABC

Domain Name and Data Encryption

In this step, we will set the domain name. Our domain name will be SSHabc. And after that, we will encrypt the data in it with “crypto key generate rsa” command.

During this configuration we will set the module sizes. So we will use 512 here.

ABC (config) # ip domain-name SSHabc

ABC (config)# crypto key generate rsa general-keys modules 512

Router User Config

This step is the classical user definion on the router. We will do it with username, password and the priviledge level. Our user is gokhan, password is abc123 and the priviledge mode is 15.

ABC (config) # username gokhan privilege 15 password abc123

We will use this username and password for SSH connection.

SSH Config

The main configuration step of this Configuring SSH lesson is this step. Here, we will do the SSH configuration in line mode.

Firstly, we will go to line mode and configure SSH for 16 users from 0 to 15. And then we will use “transport input ssh”. This command will allow only SSH access. Telnet accesses will be rejected.

Then, we will set the login as local with “login local” command. With this command, we can use local router users to ssh access.

After that , we will configure the the version of SSH. There are two SSH versions, SSH version 1 and SSH version 2. The second one provide more enhanced security agorithm. Here, we will use SSH version 2. To configure it, we will use “ip ssh version 2” command.

Lastly, we will save our SSH Configuration.

ABC (config) # line vty 0 15

ABC (config-line) # transport input ssh

ABC (config-line) # login local

ABC (config-line) # ip ssh version 2

ABC (config-line) # end

ABC # write

SSH Verification

At the last step of Configuring SSH, SSH Config Example, we can try to connect via SSH from PC to the router. To do this, we will open the command line on the PC and connect to the router with the below command. Here our Router interface ip is 10.0.0.1.

Secure Shell (SSH) configuration on a switch and router in Packet Tracer

Welcome to this tutorial! Here, we’ll have an overview of Secure Shell ( SSH ) protocol, then see how to configure it on a switch and a router in Packet Tracer.

An overview of SSH

Secure Shell, just like Telnet , enables a user to access a remote device and manage it remotely. However, with SSH, all data transmitted over a network (including usernames and passwords) is encrypted and secure from eavesdropping.

SSH is a client-server protocol, with a SSH client and a SSH server . The client machine (such as a PC) establishes a connection to a SSH server running on a remote device (such as a router). Once the connection has been established, a network admin can execute commands on the remote device.

Configuring SSH on a router in Packet Tracer

For this tutorial, we’ll configure SSH on the router so that you as the admin can access and manage it remotely using an SSH client on the admin PC.

And now on to it:

First build the network topology.

ssh router topology

Then do these basic IP configurations on the PC and the router:

Router

PC : IP address 10.0.0.10 Subnet mask 255.0.0.0 Default gateway 10.0.0.1

Now, to set up SSH on the router, you’ll need to:

1. Set Router’s hostname

2. Set domain name

Both the hostname and domain name will be used in the process of generating encryption keys.

3. Now generate encryption keys for securing the session using the command crypto key generate rsa.

4. Set an enable password .

Note that this password is not for use with SSH; its only for use in accessing the privileged executive mode of the router after you are able to access its CLI remotely via SSH .

5.Set username and password for local login.

The password will have to be provided before you can access the CLI of the router when using SSH.

6.Specify the SSH version to use.

7.Now connect to VTY lines of the Router and configure the SSH protocol.

That’s all for configuration. Move on to see if you can access the router remotely from the PC.

8. On the command prompt of the PC, open a SSH session to the remote router by typing the command: ssh -l admin 10.0.0.1

admin is the username set in step 5.

9. Provide the login password which you set in step 5 and press enter. You’re now probably in the CLI of the router. Provide the enable password (the one you set in step 4) to access the privileged executive mode.

ssh router-PC authentication.PNG

You can proceed and do configurations on the Router.You’re now managing the router remotely from the PC.

At this point, let’s move on and configure SSH on a switch.

SSH configuration on a Switch

Here, we’ll configure SSH on a multi-layer switch. The commands remain almost the same as for the router; only that in a switch, we’ll use the IP address of its VLAN interface to access it from the PC.

So then, let’s move on.

  1. Begin by creating the network topology.

SSH switch topology.PNG

Then configure basic IP addressing on the PC and the switch. On the switch, we’ll assign an IP address to a VLAN interface, just as we’ve said.

Switch

Give the ADMIN PC IP address 10.0.0.10 /8

Now, to configure SSH on the multilayer switch, here are the steps.

1.Configure hostname

2. Configure IP domain name

Both the host name and domain name will be used in the process of generating encryption keys.

3. Now generate encryption keys for securing the session.

4.Set an enable password.

Again, note that enable password is not necessarily used in configuring SSH; it will allow the admin to access the privileged executive mode of the switch once a remote connection to the switch via SSH is established.

5. Set username and password for local login.

6. Specify the SSH version to use.

7. Now connect to the VTY lines of the switch and configure SSH on the lines.

That’s all for SSH configuration on the switch. Move on and try to access the switch remotely from the PC.

8. On the command prompt of the Admin PC, open a SSH session to the switch using the command ssh -l admin 10.0.0.1

Note that: admin is the username defined in step 5 while 10.0.0.1 is the IP address of the VLAN interface of then switch.

Читать:
В какой программе обрезать фото под нужный размер

Похожие статьи