cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
102685
Views
36
Helpful
17
Replies

Kill VTY session on Catalyst 2950

vtmtwwfci
Level 1
Level 1

Dear all,

I have in my lab a 24 port Switch, model Catalyst 2950T-24 (WS-C2950T-24).

I am connected using a console cable to this switch, and I am using the Terminal program on my computer to control my switch.

My computer is connected using a sky-blue console cable from Serial port to Console port.

On this switch I can see that a user is connected to the switch using a telnet session, witch is listed as VTY 0, with the following command:

--------

SWITCHB1#sh user

    Line       User       Host(s)              Idle       Location

*  0 con 0                idle                 00:00:00

   2 vty 0                idle                 00:00:02 192.168.0.200

-------

My question is as follow:

How can I kill/disconnect the opened session VTY 0 that I identified as a malicious person?

I have already tried several times the command "clear line" or "clear line 2", but it does not work, saying:

------

SWITCHB1#clear line 2

                 ^

% Invalid input detected at '^' marker.

-------

Any ideas ?

Thank you in advance.

V.

17 Replies 17

Hi,

 

Your vty session is on vty 0 not 2!

SWITCHB1#sh users
Line User Host(s) Idle Location
* 0 con 0 idle 00:00:00
2 vty 0 idle 00:00:27 192.168.0.200

Interface User Mode Idle Peer Address
SWITCHB1#clear line vty 2
^
% Invalid input detected at '^' marker.

 

Try this


SWITCHB1#clear line vty ?
<0-189> Line number

SWITCHB1#clear line vty 0
[confirm]y [OK]

SWITCHB1#

Telecom Difs
Level 1
Level 1

Maybe your user does not have this privilege.

hii,

 

it should be 

 

clear line vty 0

or

clear line console 0

Review Cisco Networking products for a $25 gift card