Sneaky network fun

The place to post if you need help or advice

Moderators: ChrisThornett, LXF moderators

Sneaky network fun

Postby heiowge » Sun Sep 23, 2012 11:49 am

Can I send a command via CLI from one computer to another if I have the admin password? If so, how?

What I intend to do with it...

When the kids are being slow to move because they're watching Doctor Who on their laptops, no matter how often I shout them they don't move. The second they encounter a problem, however, they're right next to me to solve it. I can sneakily shut their machines down remotely and have them come to me... :twisted:
i5 4440 3.1Ghz, Asus H87M-E motherboard, 8GB DDR3, 2GB DDR5 nVidia card, 2x500GB Seagate hd, Coolermaster 750W PSU running Mint 16 MATE and Win7

eeepc 1015PX, 1.66 Ghz Intel atom processor, 2 GB DDR3, 320 GB hd, Mint 14 MATE. Fan needs fixing.
User avatar
heiowge
LXF regular
 
Posts: 1905
Joined: Wed Feb 27, 2008 8:21 pm
Location: Cheshire, UK

Postby MartyBartfast » Sun Sep 23, 2012 12:12 pm

configure & start sshd on the remote box and not only can you execute remote cli commands on it but you can log into it too.

It's considered a bad idea (security wise) to allow root ssh access so this is usually disabled but you can log into your personal account and then su or sudo.

Have a look for a howto for installing/configuring ssh.
I have been touched by his noodly appendage.
User avatar
MartyBartfast
LXF regular
 
Posts: 814
Joined: Mon Aug 22, 2005 7:25 am
Location: Hants, UK

Postby Dutch_Master » Sun Sep 23, 2012 12:41 pm

Even better: use secure keys to set up a trusted connection and you can skip logging in altogether ;)

However, shutting down the machine will have them realise that you control their laptops quite quickly, so I'd suggest to shut down whatever application they're using instead. At least initially, if that doesn't work, a shutdown would be in order... :)
Dutch_Master
LXF regular
 
Posts: 2438
Joined: Tue Mar 27, 2007 1:49 am

Postby nelz » Sun Sep 23, 2012 4:00 pm

What kind of father deprives his kids of the chance to watch Doctor Who? :shock:
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8468
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Postby heiowge » Sun Sep 23, 2012 7:07 pm

The kind who catches them watching it before school. Or before tea. Or bath, or...
i5 4440 3.1Ghz, Asus H87M-E motherboard, 8GB DDR3, 2GB DDR5 nVidia card, 2x500GB Seagate hd, Coolermaster 750W PSU running Mint 16 MATE and Win7

eeepc 1015PX, 1.66 Ghz Intel atom processor, 2 GB DDR3, 320 GB hd, Mint 14 MATE. Fan needs fixing.
User avatar
heiowge
LXF regular
 
Posts: 1905
Joined: Wed Feb 27, 2008 8:21 pm
Location: Cheshire, UK

Postby nelz » Sun Sep 23, 2012 7:21 pm

Using SSH and xdialog (or zenity or kdialog) you could pop up a window saying "You should be on your way to school now". You could even run this from a cron job to nag them automatically :)
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8468
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK


Return to Help!

Who is online

Users browsing this forum: No registered users and 2 guests