03-13-2019 10:15 AM
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
03-13-2019 10:21 AM - edited 03-13-2019 10:25 AM
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.
03-14-2019 02:17 AM
thanks Seb,
can i clear all vty lines in one command?
03-14-2019 02:35 AM
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
03-14-2019 03:02 AM
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.
03-14-2019 03:17 AM
thanks seb,
dont i need to configure a ssh user, how do i do this?
03-14-2019 03:30 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide