How to cut off a ssh connection
Ulf Rompe
Ulf.Rompe at icem.com
Wed Jul 18 15:35:44 UTC 2007
Am Mittwoch, den 18.07.2007, 11:17 -0400 schrieb Matthew Flaschen:
> > ps aux | grep ssh
> >
> > see which user/process needs to go and let them go (kill).
>
> Alternatively, you could try using slay:
>
> sudo apt-get install slay
>
> slay otherUser
>
> That will kill all of their processes, logging them off.
killall -u otherUser
does the same (while remaining the current process tree untouched, but I
think slay will also do it this way).
The problem with this is that you will kill every process of the said
user instead of just the SSH connection. To kill all SSH logins of a
user you could use
killall -u otherUser sshd
[x] ulf
--
If at first you don't succeed, try management.
More information about the ubuntu-users
mailing list