Re: Launching a shell script from a remote Windows machine.

From: amos_at_nonexisting.hamakor.org.il
Date: Sun 21 Nov 2004 - 22:25:33 IST


Amir Hardon wrote:
> I'm looking for a way to create a simple click-n'-forget icon on a Windows(98)
> machine, that will invoke a shell script on a Linux server.
> The only solution I can think of that doesn't involve writing a client-server
> application specific for this task, is using ssh+putty, but this won't be
> simple enough because it will require more than a double-click from the user.
>
> Thanks for any ideas,

As someone else hinted - such a thing might become a security breach but
you can use a non-passphrase-protected client certificate + putty to
login to sshd and run a command. You can limit which commands can be
executed and which client hosts can connect using that client-key
through ~/.ssh/authorized_keys. So, for instance, you can write a
script which does on the server exactly the command you want to allow
and then limit that key to run only that tailore-made script from the
client.

See sshd(1) for more details (lookup "AUTHORIZE_KEYS FILE FORMAT").

--Amos

=================================================================
To unsubscribe, send mail to linux-il-request_at_linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request_at_linux.org.il



This archive was generated by hypermail 2.1.7 : Sun 21 Nov 2004 - 22:42:16 IST