What is the difference between Telnet and SSH as supported by a Cisco switch?

Telnet

Telnet is a network protocol that allows a user to communicate with a remote device. It is a virtual terminal protocol used mostly by network administrators to remotely access and manage devices. Administrator can access the device by telnetting to the IP address or hostname of a remote device.

To use telnet, you must have a software (Telnet client) installed. On a remote device, a Telnet server must be installed and running. Telnet uses the TCP port 23 by default.

One of the greatest disadvantages of this protocol is that all data, including usernames and passwords, is sent in clear text, which is a potential security risk. This is the main reason why Telnet is rarely used today and is being replaced by a much secure protocol called SSH. Here you can find information about setting up Telnet access on your Cisco device.

NOTE
The word telnet can also refer to the software that implements the telnet protocol.

On Windows, you can start a Telnet session by typing the telnet IP_ADDRESS or HOSTNAME command:

telnet windows

SSH (Secure Shell)

SSH is a network protocol used to remotely access and manage a device. The key difference between Telnet and SSH is that SSH uses encryption, which means that all data transmitted over a network is secure from eavesdropping. SSH uses the public key encryption for such purposes.

Like Telnet, a user accessing a remote device must have an SSH client installed. On a remote device, an SSH server must be installed and running. SSH uses the TCP port 22 by default.

Here is an example of creating an SSH session using Putty, a free SSH client:

putty

NOTE
SSH is the most common way to remotely access and manage a Cisco device. Here you can find information about setting up SSH access on your Cisco device.


Download our Free CCNA Study Guide PDF for complete notes on all the CCNA 200-301 exam topics in one book.

We recommend the Cisco CCNA Gold Bootcamp as your main CCNA training course. It’s the highest rated Cisco course online with an average rating of 4.8 from over 30,000 public reviews and is the gold standard in CCNA training:

Which of the following is a difference between Telnet and SSH as supported by a Cisco switch?

a. SSH encrypts the passwords used at login, but not other traffic; Telnet encrypts nothing.
b. SSH encrypts all data exchange, including login passwords; Telnet encrypts nothing.
c. Telnet is used from Microsoft operating systems, and SSH is used from UNIX and Linux operating systems.
d. Telnet encrypts only password exchanges; SSH encrypts all data exchanges.

Upgrade to remove ads

Only ₩37,125/year

  1. Other
  2. Computer Skills

  • Flashcards

  • Learn

  • Test

  • Match

  • Flashcards

  • Learn

  • Test

  • Match

Terms in this set (46)

In what modes can you execute the command show mac address-table? (Choose two)
a. User mode
b. Enable mode
c. Global configuration mode
d. Interface configuration mode

A (User mode) and B (Enable mode) . The command in the question is an EXEC command that happens to require only user mode access. As an EXEC command, you cannot use the command in configuration mode, unless you preface the command with "do" (for example, do show mac address-table). As such, you can use this command in both user mode and enable mode.

In which of the following modes of the CLI could you issue the command reload to reboot the switch?
a. User mode
b. Enable mode
c. Global configuration mode
d. Interface configuration mode

A (User mode) and B (Enable mode) . The command in the question is an EXEC command that happens to require only user mode access. As an EXEC command, you cannot use the command in configuration mode, unless you preface the command with "do" (for example, do show mac address-table). As such, you can use this command in both user mode and enable mode.

Which of the following is a difference between Telnet and SSH as supported by a Cisco switch?
a. SSH encrypts the passwords used at login, but not other traffic; Telnet encrypts nothing.
b. SSH encrypts all data exchange, including login passwords; Telnet encrypts nothing.
c. Telnet is used from Microsoft operating systems, and SSH is used from UNIX and Linux operating systems.
d. Telnet encrypts only password exchanges; SSH encrypts all data exchanges.

B (SSH encrypts all data exchange, including login passwords; Telnet encrypts nothing.) . SSH provides a secure remote login option, encrypting all data flows, including password exchanges. Telnet sends all data (including passwords) as clear text.

What type of switch memory is used to store the configuration used by the switch when it is up and working?
a. RAM
b. ROM
c. Flash
d. NVRAM
e. Bubble

A (RAM) . Switches (and routers) keep the currently used configuration in RAM, using NVRAM to store the configuration file that is loaded when the switch (or router) next loads the IOS.

What command copies the configuration from RAM into NVRAM?

a. copy running-config tftp
b. copy tftp running-config
c. copy running-config start-up-config
d. copy start-up-config running-config
e. copy startup-config running-config
f. copy running-config startup-config

F (copy running-config startup-config ) . The startup config file is in NVRAM, and the running config file is in RAM.

A switch user is currently in console line configuration mode. Which of the following would place the user in enable mode? (Choose two answers.)

a. Using the exit command once
b. Using the end command once
c. Pressing the Ctrl-Z key sequence once
d. Using the quit command

B (Using the end command once) and C (Pressing the Ctrl-Z key sequence once) . The exit command moves the user one config mode backward, toward global configuration mode, or if already in global configuration mode, it moves the user back to enable mode. From console mode, it moves the user back to global configuration mode. The end command and the Ctrl-Z key sequence both move the user back to enable mode regardless of the current configuration submode.

3 Cabling options for a console connection

1. RJ-45 Console -> Rollover Cable -> Serial Port
2. RJ-45 Console -> Rollover Cable -> USB Converter -> USB Cable -> USB Port
3. USB Console -> USB Cable -> USB Port

List the default console port settings

9600 bits/second
No hardware flow control
8-bit ASCII
No parity bits
1 stop bit

hostname(config)#

in Global mode, the first mode after configure terminal.

hostname(config-line)#

in Line mode, command to reach line mode is line console 0
line vty 0 15

hostname(config-if)#

in Interface mode, command to reach interface mode is interface (type number)

hostname(vlan)#

in VLAN mode, command to reach VLAN mode is vlan (number)

Types of memory in a switch

RAM: Sometimes called DRAM, for dynamic random-access memory, RAM is used by the switch just as it is used by any other computer: for working storage. The running (active) configuration file is stored here.
ROM: Read-only-Memory stores a bootstrap or (boothelper) program that is loaded when the switch first powers on. This bootstrap program then finds the full Cisco IOS image and manages the process of loading Cisco IOS into RAM, at which point Cisco IOS takes over operation of the switch.
Flash memory: Either a chip inside the switch or a removable memory card, flash emory stores fully functional Cisco IOS images and is the default location where the switch gets its Cisco IOS at boot time. Flash memory also can be used to store any other files, including backup copies of configuration files.
NVRAM: Nonvolatile RAM stores the initial or startup configuration file that is used when the switch is first powered on and when the switch is reloaded.

Startup config

Stores the initial configuration used anytime the switch reloads Cisco IOS. (Stored in NVRAM)

Running config

Stores the currently used configuration commands. This file changes dynamically when someone enters commands in configuration mode. (stored in RAM)

Two Main Cisco IOS Configuration files

Startup config and Running Config.

Command-line Interface (CLI)

An interface that enables the user to interact with the operating system by entering commands and optional arguments.

Telnet

The standard terminal-emulation application layer protocol in the TCP/IP protocol stack. Telnet is used for remote termianl connection, enabling users to log in to remote systems and use resources as if they were connected to a local system. Telnet is defined in RFC 854.

Secure Shell (SSH)

A TCP/IP application layer protocol that supports terminal emulation between a client and server, using dynamic key exchange and encryption to keep the communications private.

Enable mode

A part of the Cisco IOS CLI in which the user can use the most powerful and potentially disruptive commands on a router or switch, including the ability to then reach configuration mode and reconfigure the router.

User Mode

A mode of the user interface to a router or switch in which the user can type only nondisruptive EXEC commands, generally just to look at the current status, but not to change any operational setttings.

Configuration mode

A part of the Cisco IOS Software CLI in which the user can type configuration commands that are then added to the device's currently used configuration file (running config).

Startup config file

In Cisco IOS switches and routers, the name of the file that resides in NVRAM memory, holding the device's configuration that will be loaded into RAM as the running-config file when the device is next reloaded or powered on.

Running config file

In Cisco IOS switches and routers, the name of the file that resides in RAM memory, holding the device's currently used configuration.

Line Console 0

Global command that changes the context to console configuration mode.

Line vty (1st-vty last-vty)

Global command that changes the context to vty configuration mode for the range of vty lines listed in the command.

Login

Line (console and vty) configuration mode. Tells IOS to prompt for a password (no username)

Password (pass-value)

Line (console and vty) configuration mode. Lists the password required if the login command (with no other parameters) is configured

Interface (type port-number)

Global command that changes the context to interface mode for example, Interface FastEthernet 0/1.

Hostname (name)

Global command that sets this switch's host name, which is also used as the first part of the switch's command prompt.

Exit

Moves back to the next higher mode in configuration mode.

End

Exits configuration mode and goes back to enable mode from any of the configuration submodes

Ctrl-Z

This is not a command, but rather a two-key combination (pressing the Ctrl key and the letter Z) that together do the same thing as the end command.

no debug all
undebug all

Enable mode EXEC command to disable all currently enabled debugs.

Terminal monitor

EXEC command that tells Cisco IOS to send a copy of all syslog messages, including debug messages, to the Telnet or SSH user who issues this command.

Reload

Enable mode EXEC command that reboots the switch or router.

Copy (from location to location)

Enable mode EXEC command that copies files from one file location to another. Locations include the startup config and running config in RAM. files TFTP and RCP servers, and flash memory.

copy running-config
startup-config

Enable mode EXEC command that saves the active config, replacing the startup config file used when the switch initializes.

copy startup-config
running-config

Enable mode EXEC command that merges the startup config file with the currently active config file in RAM.

Show running-config

Lists the contents of the running config file.

Write erase
Erase startup-config
Erase NVRAM:

These enable mode EXEC commands to erase the startup config file.

Quit

EXEC command that disconnects the user from the CLI session.

show startup-config

Lists the contents of the startup config (initial config) file.

enable

moves the user from user mode to enable (privileged) mode and prompts for a password if one is configured.

disable

moves the user from enable mode to user mode.

configure terminal

Enable mode command that moves the user into configuration mode.

Students also viewed

ICND 100-105 Chapter 6

18 terms

Brett_Massar

Chapter 6

11 terms

michael_lee74

Chapter 9

6 terms

Justin_Hall760

Chapter 8: Implementing Ethernet Virtual LANs

62 terms

JoshMeech

Sets found in the same folder

Ch. 9 Implementing Ethernet Virtual LANs

51 terms

krista_littmann

Chapter 3: Fundamentals of WANs

28 terms

krista_littmann

Ch. 5 Fundamentals of TCP/IP Transport and Applica…

31 terms

krista_littmann

Ch. 12 Analyzing Classful IPv4 Networks

26 terms

krista_littmann

Other sets by this creator

Ch. 2 70-346

10 terms

krista_littmann

Chapter 1: 70-346

11 terms

krista_littmann

Overview of Motherboards

5 terms

krista_littmann

Ch. 24 Network Address Translation

8 terms

krista_littmann

Verified questions

other

It is estimated that it could take up to ( ) for your liver to get rid of the alcohol in one standard drink. A. 10 minutes B. 20 minutes C. 1 hour D. 2 hours

Verified answer

other

Water current has the greatest effect on which type of boat?

Verified answer

other

When connecting a prefix and a word, a combining vowel is ___ used.

Verified answer

other

One major advantage of push/pull steering from the low-hand position is

Verified answer

Other Quizlet sets

Lecture 6

11 terms

katelyn_gomez2

BIOE TEST 1

108 terms

mdelang20Plus

DEL 2 - kapittel 5-11

23 terms

iselinea

Which of the following is a difference between Telnet and SSH as supported by Cisco switch?

SSH and Telnet provide the same function, the only difference is the port number.

What is the difference between Telnet and SSH?

Telnet transfers data as plain text using the NVT format. SSH uses an encrypted format to transfer data through a secure connection.

Why should Telnet be replaced with SSH?

SSH (Secure Shell) provides a secure alternative to Telnet. SSH protects user identities, passwords, and data from network snooping attacks, and allows secure logins and file transfers.

Can Telnet and SSH be configured simultaneously?

You cannot open both a Telnet and an SSH-interactive session at the same time. However, you can configure for the console to share a session with a Telnet or an SSH-interactive session.