Page 1 of 1
Logout a SSH user.
Posted: 2019/11/04 12:43:27
by hack3rcon
Hello,
I used "w" command to see which user is logging on server. After it I did:
After it, I can't SSH to my server
Some part of SSH config:
Code: Select all
StrictModes yes
MaxAuthTries 3
MaxSessions 1
ClientAliveInterval 300
ClientAliveCountMax 5
How can I solve it?
Thanks.
Re: Logout a SSH user.
Posted: 2019/11/04 21:40:54
by Whoever
What user did you kill?
Re: Logout a SSH user.
Posted: 2019/11/04 22:24:30
by TrevorH
I bet it rhymes with shoot...
Re: Logout a SSH user.
Posted: 2019/11/04 23:43:20
by lightman47
I bought & read a number of books on Linux - and still am sadly way behind. You have to know what the command you are going to issue is going to do
BEFORE you issue it - and how to recover if it does something other than what you expect (happens a LOT).
Re: Logout a SSH user.
Posted: 2019/11/05 08:12:52
by hack3rcon
Whoever wrote: ↑2019/11/04 21:40:54
What user did you kill?
I saw two users with the same name and I killed one of them.
Re: Logout a SSH user.
Posted: 2019/11/05 11:21:35
by tunk
How did you see those two users?
It may e.g. be that the user have opened two putty instances from the same (windows) PC.
Re: Logout a SSH user.
Posted: 2019/11/05 12:41:11
by billwest
When I see users with the same name (could be me), I prefer to go about logging one off in a longwinded way.
Commands I use:
who
who am i
ps -A | grep bash
All of this should get you the users' bash PIDs.
Then kill -9 'relevant PID'.
Works for me.