You are on page 1of 1

Telnet and Secure Shell (SSH) Configuration in Router (or Switch)

1. Give VTY Line Password:


DUET(config)# line VTY 0 4 (Switch(config)# line VTY 0 15)
DUET(config-line)# password class
DUET(config-line)# login
DUET(config-line)# transport input all
Or (for only ssh)
DUET(config-line)# transport input ssh
Or (for only telnet)
DUET(config-line)# transport input telnet
2. Configure the Interfaces (FastEthernet or GigabitEthernet or VLAN):
DUET(config)# interface fastEthernet 0/0
DUET(config-if)# ip address 192.168.10.1 255.255.255.0
DUET(config-if)# no shutdown

DUET(config)# interface gigabitEthernet 0/0


DUET(config-if)# ip address 192.168.11.1 255.255.255.0
DUET(config-if)# no shutdown

DUET(config)# interface serial 0/0/0


DUET(config-if)# ip address 192.168.10.1 255.255.255.0
DUET(config-if)# no shutdown

DUET(config)# interface VLAN 1


DUET(config-if)# ip address 192.168.10.5 255.255.255.0
DUET(config-if)# no shutdown
DUET(config-if)# description VLAN-Student

3. Create Username and Password:


DUET(config)# username admin password duet

4. Configuring SSH
DUET(config)# ip domain-name www.duet.com
DUET(config)# crypto key generate rsa

How many bits in modulas [512]: 1024

DUET(config)# line VTY 0 4 (Switch(config)# line VTY 0 15)


DUET(config-line)# login local
DUET(config-line)# transport input ssh

For login using telnet from Command Prompt:

>telnet 192.168.11.1

For login using SSH from Command Prompt:

>ssh –l admin 192.168.11.1

You might also like