04-23-2013 12:27 PM - edited 03-07-2019 12:59 PM
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.
Solved! Go to Solution.
09-06-2017 10:24 PM
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#
11-30-2015 12:44 PM
Maybe your user does not have this privilege.
10-05-2018 05:51 AM
hii,
it should be
clear line vty 0
or
clear line console 0
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