Log out someone else

Solved
santiago69 Posted messages 485 Status Member -  
 PcSi-L -
Hello everyone,
I would like to know how to log out a user session (ssh) (and if it's possible).
I am the administrator of a Debian 4 Linux server.
All users connect to the machine via ssh.
So, if you can help me, that would be great.
See you later
Santiago

--

There are 10 types of people in the world
Those who understand binary and the others.

4 answers

  1. Franzux Posted messages 9705 Status Contributor 1 146
     
    # skill -KILL -u user


    Should be more than enough.

    Best regards.
    --
    Intel Q6600 Ubuntu 8.10 Alpha 6//Debian Lenny//Gentoo
    On Linux, 99% of bugs are located between the keyboard and the office chair...
    8
    1. 9Foxman9
       
      I am on Ubuntu 12.04 and it doesn't work.
      0
    2. PcSi-L
       
      Sure, under Ubuntu, you need to add before "sudo"
      The command becomes:
      admin@station:~$ sudo skill -KILL -u user [sudo] password for admin: admin@station:~$ ps -u user PID TTY TIME CMD admin@station:~$ 


      Reminder: the command
      ps -u user
      displays the processes of a user.
      0
  2. Biga
     
    Well use -t to kill a specific terminal, not -p.
    1
  3. santiago69 Posted messages 485 Status Member 209
     
    Great, thanks!

    --

    There are 10 types of people in the world:
    Those who understand binary and those who don't.
    0
  4. davidlinux Posted messages 86 Status Member 4
     
    Hello
    How to kill just one root session
    Example:
    5 simultaneous root connections: pty/1 pty/2 .... pty/5
    Being in pty/3, how can I kill the session pty/1 for example... I checked the man for skill but it doesn't work with -p?
    Can we kill the open root session on local :0 from a distance?
    Best regards
    0