cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1934
Views
0
Helpful
6
Replies

kill all telnet sessions to 4510

robertkwild
Spotlight
Spotlight

hi all,

 

i have a cisco cat 4510 switch and i have obviously opened too many telnet sessions opened to it

 

so the only option is to hook up my laptop locally to the switch via console and kill the telnet sessions

 

how would i do that please?

 

cheers,

rob

6 Replies 6

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

Use the command sh line

 

...and then clear line <xxx>

 

You may also want to add:

!
line vty 0 15
  session-timeout 10
!

 

cheers,

Seb.

thanks Seb,

 

can i clear all vty lines in one command?

still not working after i cleared all the lines manually (1-15), im getting this message still -

 

telnet 10.110.250.20
No resources to open new connection

 

do you think its better i enable ssh, if so how would i do this please

 

many thanks,

rob

 

I can't think of many reasons why your'd want to still use telnet.

Use these commands to enable SSH:

!
ip domain-name <your_domain>
crypto key generate rsa
ip ssh version 2
!
line vty 0 15
  transport input ssh
!

cheers,

Seb.

 

thanks seb,

 

dont i need to configure a ssh user, how do i do this?

am i doing something wrong -

 

Current configuration : 8674 bytes
!
! Last configuration change at 10:12:09 UTC Thu Mar 14 2019
!
version 15.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
service compress-config
!
hostname 4510MCR01
!
boot-start-marker
boot system bootflash:cat4500e-universalk9.SPA.03.07.01.E.152-3.E1.bin
boot-end-marker
!
vrf definition mgmtVrf
!
address-family ipv4
exit-address-family
!
address-family ipv6
exit-address-family
!
enable secret 5 $1$6miT$uRveHgaVVln5gGADuEbih.
!
username admin password 0 cisco
no aaa new-model
!
ip vrf Liin-vrf
!
ip domain-name 4510MCR01
!
vtp domain SPE
vtp mode transparent
!
power redundancy-mode redundant
spanning-tree mode pvst
spanning-tree extend system-id
!
redundancy
mode sso
!
vlan internal allocation policy ascending
!
vlan 10,22,110,130,170,240,250
!
ip ssh version 2
ip ssh pubkey-chain
username admin
######
at the very bottom
######

line con 0
stopbits 1
line vty 0 4
session-timeout 10
password cisco
login local
transport input ssh
line vty 5 15
session-timeout 10
password cisco
login local
transport input ssh
!
end

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card