Click to See Complete Forum and Search --> : Force logout


Cerf
03-05-2005, 03:44 PM
Hey,

To contact my "server" (hp 233 kayak) I use ssh. On one fine day (today) someone (my foot) disconnected the lan cable that connected the client (a win xp/slack 10 duel boot) to the network .: I lost the connection. After loging back in and running uptime I learned that there are two user loged in. Subsequently running "who" I found that I am loged in twice.

How can I log out that seccond, unused, occurence of me? (Does the question make sense?)

hlrguy
03-05-2005, 04:24 PM
from the who, you can get the PTS of the old connection.

ps -ef |grep "pts/<x>"
kill -9 <pid>

pid is the first number from the left. The ssh connection should be a child process of the pts session and get killed when you kill the pts

hlrguy

sharth
03-05-2005, 05:14 PM
slay is a fun program.

Cerf
03-05-2005, 10:41 PM
Originally posted by hlrguy
from the who, you can get the PTS of the old connection.

ps -ef |grep "pts/<x>"
kill -9 <pid>

pid is the first number from the left. The ssh connection should be a child process of the pts session and get killed when you kill the pts

hlrguy

Cool thanks


slay is a fun program.


slay definitely looks like a fun program