Originally Posted by deathsquadd
Let me clarify. There is no hacking, cracking blah blah blah involved with this request. This is all happening in a closed environment with no access to the outside world, only a closed network in a classroom. This person is essentially annoying everyone by his incessant desire to restart peoples computers. I'm not going to be that guy who tattles to the instructor. I don't know how asking about a script to protect my computer and learning experience by preventing someone from interrupting said experience falls into violation of the rules above.
That's fine, but try to look at it from our standpoint. The only way we know this is by you TELLING us...we have no way of knowing it's true, or what you'll actually use it for. You're asking for a script that can do things remotely to another computer; that's the only fact we can ascertain, and that's what makes it against the LQ rules.
You may not WANT to be that guy who tattles, but that's the way life is. Do you think such behavior would be tolerated in the real working world? If this guy is annoying the whole class, he's costing everyone time and effort and should be reported, period. Your other option is to walk over to his desk next time it happens, and very loudly ask him what the hell his problem is.
Changing your user id/password is the best step, as would be looking into the AllowUsers/DenyUsers directives in the sshd_config file. Rebooting your machine needs root access...change the PermitRootLogin line to be NO, change your root password, and make sure that only YOUR user ID is allowed to SSH in. Those are some good learning steps, since you'll then have one of the basic system hardening steps done.