KpyM Telnet/SSH Server - Forum
How can I close a single clientconnection
hg How can I close a single clientconnection
 
How can I close a single clientconnection without the other existing connections to close


Kroum Grigorov
 
You can see the active connections by listing the files under "c:\Program Files\KTS\log\active-sessions", each file coresponds to one active session.

The files look like this
kts_127.0.0.1_1154_3608_shell_user@domain_2010-09-12 20h 23m 55s
this translates to:
kts_<client ip address>_<client port>_<session PID>_<session state>_<user@domain>_<date>

Now if you need to close a session you can list the running processes on your box([url=l0c41://technet.microsoft.com/en-us/sysinternals/bb896682.aspx]pslist.exe -t[/url]), locate the session you want to close(by it's PID) and kill the cmd.exe process that is the first child of the session.

Kroum


hg
 
thx, it works !


 

© 2007 - 2008 Kroum Grigorov
Powered by phpBB © 2001, 2005 phpBB Group