ussndmac
February 9th, 2009, 05:17 PM
Hi,
When I shutdown my home net, I can either step up to my firewall/nat box, log in, and shutdown.
Or, I ssh into it from whatever machine I happen to be using and do a shutdown.
This is all fine for me, but, when I not around and my wife wants to shutdown, she's mystified.
So, I think I want to write a script that can be run on her machine that ssh's into the firewall and shuts down.
I'm pretty sure I can get a script to run when a local terminal window is activated, but how do I enter commands to ssh, and subsequently to the firewall box?
Regards,
Mac
When I shutdown my home net, I can either step up to my firewall/nat box, log in, and shutdown.
Or, I ssh into it from whatever machine I happen to be using and do a shutdown.
This is all fine for me, but, when I not around and my wife wants to shutdown, she's mystified.
So, I think I want to write a script that can be run on her machine that ssh's into the firewall and shuts down.
I'm pretty sure I can get a script to run when a local terminal window is activated, but how do I enter commands to ssh, and subsequently to the firewall box?
Regards,
Mac