[ubuntu-in] multiple session of one user

Kingsly John member+ubuntu at kingsly.net
Wed Mar 23 14:07:25 UTC 2011


+++ Nandan Vaidya [2011-03-23 16:01:32]:

> If the 10.160.0.x2 session was via launched ssh, then the $w command should
> show you the PID of the sshd process from where the pts/x (replace x with a
> number) session was launched.
> I believe killing this particular sshd process (only) should log you out from
> that session.

Where do you see the PID in the output of "w"  ?

> I actually used this a couple of days ago, it worked but having to use $ kill
> -9 was :(
> 
> If there is a better solution, hopefully somebody will point it out.

It's better to kill the shell rather than sshd 

ps x |grep bash <-- shows you the PID and pts/X .. kill the approriate ones.

(replace bash with whatever your default shell is)

Kingsly

-- 
---------------------------------------------------------------------------
     Kingsly At Users Dot SourceForge Dot Net  -- http://kingsly.org/
---------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-in/attachments/20110323/ae7e83ea/attachment.pgp>


More information about the ubuntu-in mailing list