View Single Post
Posts: 92 | Thanked: 9 times | Joined on Nov 2009 @ Germany, Bavaria
#1
Hi!

I use a NSLU2 (NAS-System) which runs linux (debian) with a usb-controlled multiple power socket (Gembird) to control the light in my living-room. Works fine. (At this time I control it with a PHP-based webpage on the NSLU)

Now i want to switch the sockets without this (slow) webpage.
My idea was to create a script which connects via SSH from the N900 to the NSLU and then run the needed commands.

When i connect manually with XTerminal over SSH i get a prompt to enter my password. After this i can run the command.

How can i put this in a script? Is this automation possible with a "password-based-authentication?". Or do i need certificates or something like this for authentication.

My second question: How can is put a link to this script to my "program menu" or to a homescreen.

Thank you!

Last edited by RouterRebooter; 2010-01-06 at 18:01.