Telnet
Telnet
Todd Lammle
CCNA
Routing & Switching Study Guide
SYBEX, A Wiley Brand
Introduction
SSH - Secure Shell
Review Questions
Both uses TCP at transport layer with port number for telnet is 23 and for
ssh is 22.
Secure Shell (SSH) is more secure than telnet as telnet does not support
any encryption techniques.
It can be can optionally managed remotely by accessing its CLI via telnet
or SSH, or it can be managed using GUI with a web browser.
It is an application layer protocol that uses TCP with port number 23.
Users begin a Telnet session by running the Telnet client software and
then logging into the Telnet server.
switch>enable Router>enable
switch#config t Router#config t
switch(config)#line vty 0 5 ... #line vty 0 4
switch(config-line)#password telnet #password telnet2
switch(config-line)#login #login
switch(config-line)#exit Router(config-line)#exit
Command Description:
- The problem with telnet : all information are sent in clear text, including
username and/or password.
- The easiest way to accomplish this is to replace the use of telnet with
SSH (Secure Shell).
- SSH uses RSA as an encryption algorithm to encrypt any data sent be-
tween us and our networking device.
- RSA public and private keys: We will need to generate the encryption
keys. These are used to encrypt and decrypt data that travels through
the remote-access connection (command: crypto key generate rsa).
- The SSH version to use: We should configure the specific SSH version
we want to use. The default is version 1, but the recommended version
to use is 2 (ip ssh version).
- Restricting VTY access: Finally, we will ensure that remote access can
be achieved only through SSH and not telnet, because telnet does not
encrypt communication. By default, telnet is allowed on the VTYs- we
should ensure that only SSH access is allowed (command: login local
and transport input line-subconfiguration).
Ð Tell the line to use the local database for username and password:
Router(config-line)#login local
Switch
PC2 Set the Vlan Ip
192.168.10.10
PC3
PC2 Switch
PC3
2. Which of the following prompts indicates that the switch is currently in privileged
mode?