Linux -- remote logging out

Zach

Diamond Member
Oct 11, 1999
3,400
1
81
I feel dumb, but it looks like I didn't logout after setting up one of my servers at my colocation provider's. Can I boot out a console login by root remotely without rebooting?
 

Damaged

Diamond Member
Oct 11, 1999
3,020
0
0
Yup. Just log back in, then type tty to see which term you're using, then type who to get a full listing of all users, then ps aux to find the pid for the other session, the kill that pid.
 

Zach

Diamond Member
Oct 11, 1999
3,400
1
81
Oh duh, yeah I've done that kicking failed telnet logins... thanks!
 

Damaged

Diamond Member
Oct 11, 1999
3,020
0
0
No problem. Yeah, that one escapes me sometimes as well. Probably because I don't have to do it too often.

Hmm, I should probably write a script to do that for me. Then I don't have to remember. :)
 

Zach

Diamond Member
Oct 11, 1999
3,400
1
81
I forget about scripts I write though.. shoot down that idea