Shutting down a Ubuntu server remotely from Windows?
Daniel Mons
daniel.mons at iinet.net.au
Sat Nov 17 22:16:54 GMT 2007
The "halt" command is equivalent to "shutdown now -h".
"sudo halt" is simple enough. If you configure PuTTY and the server
side sshd to use RSA key authentication (via putty-keygen on the windows
side, and /root/.ssh/authotized_keys on the linux side), you can set up
a putty shortcut so he can SSH straight into the machine without the
need for a password.
So the whole process would be:
1) Double-click icon on desktop
2) Type "sudo halt"
3) Close window.
Even for the most basic of users that shouldn't be too much of an issue,
especially if it's written down on a sticky note attached to their monitor.
On another note, I do hope you set up software RAID1 mirroring on his
machine. I'd hate for him to have a disk failure and lose everything
that has been put onto his "reliable" file server.
-Dan
Tom Schinckel wrote:
> Okay, so I've turned an old box into a Ubuntu file server for the old
> man to keep his dodgey 80's music and other "important" files of his
> which he can access via Samba etc. on his XP desktop. Anyway, the
> problem I'm having is that he doesn't want it running 24-7, thus I'd
> like a way of remotely turning the thing off. Currently, the only way to
> do it is too ssh in and go sudo shutdown -P now, but that's a bit
> complicated for him, so he'd prefer if he could just click an icon on
> the desktop or something. I'm not to concerned if it's insecure, because
> everything's sitting behind a firewall.
>
> Any ideas?
>
More information about the ubuntu-au
mailing list