cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
299
Views
0
Helpful
3
Replies

reset line vty on switch

akpeliodon
Level 1
Level 1

line con 0
exec-timeout 5 30
login local
stopbits 1
line aux 0
stopbits 1
line vty 0 4
login local
transport input ssh
line vty 5 15
login local
transport input telnet

hello the panel I would like to have help with my ssh which does not work on a switch I even have it then configure the telnet but I would like to delete the telnet and just activate the SSH with which command to reset the lines VTY?

 

 

 

3 Replies 3

Hello,

did you enable SSH access (sample config below) ? If you do not want any TELNET access, configure lines 5 15 with 'transport input ssh' as well...

Switch> enable
Switch# configure terminal
Switch(config)# hostname YOUR_SWITCH_NAME
Switch(config)# ip domain-name YOUR_DOMAIN_NAME
Switch(config)# crypto key generate rsa
How many bits in the modulus [512]: 2048
Switch(config)# ip ssh version 2
Switch(config)# line vty 0 15
Switch(config-line)# transport input ssh
Switch(config)# username YOUR_USERNAME privilege 15 secret YOUR_PASSWORD

M02@rt37
VIP
VIP

Hello @akpeliodon 

line vty 5 15
login local
no transport input telnet

--> add transport input ssh

 

If you need SSH, you need basic configuration as @Georg Pauwen list:

- hostname

- ip domain-name

- generate crypto rsa key

Assuming that you already have an unsername and password configured. in local.

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

transport input all (include SSH and telnet and other tech to access via VTY)
transport input SSH (only SSH allow to access via VTY)

transport input telnet (only telnet allow to access via  VTY)
MHM

Review Cisco Networking for a $25 gift card