Kill telnet Session

Kill telnet Session

Post by R. Ramire » Mon, 27 Jan 2003 04:08:23



Hello,

I was wondering how you kill a telnet session when someone has telneted to
your router?  Meaning you cut the session off before they can mess up your
router.  Thanks!

Radley

 
 
 

Kill telnet Session

Post by Bjorn Djupvi » Mon, 27 Jan 2003 04:50:08



> I was wondering how you kill a telnet session when someone has
> telneted to your router?  Meaning you cut the session off before they
> can mess up your router.  Thanks!

First you do a "sh us" to see who is logged in, and which line number they
have:

#sh us
    Line       User       Host(s)              Idle       Location
*  2 vty 0  xxxx        xxxx

Then just do a "clear line 2" (in this example)..you need to be in enable
mode for this.

Regards,
Bjorn

 
 
 

Kill telnet Session

Post by L. Valdé » Mon, 27 Jan 2003 11:34:07


Hello, Radley !

Router#show users
    Line       User       Host(s)              Idle       Location
*  0 con 0                idle                 00:00:00
    1  vty 0                idle                 00:00:09 192.168.0.2

Router#clear line vty 0
[confirm]
 [OK]

Router#show users
    Line       User       Host(s)              Idle       Location
*  0 con 0                idle                 00:00:00

Hope this help.



Quote:> Hello,

> I was wondering how you kill a telnet session when someone has telneted to
> your router?  Meaning you cut the session off before they can mess up your
> router.  Thanks!

> Radley