[NBLUG/talk] Remote linux command from a windows shortcut?

S. Saunders sms at sonic.net
Mon Aug 21 00:40:04 PDT 2006


On Fri, August 18, 2006 16:39, David wrote:

> Hi all
>
> Looking for a way to set a windows shortcut to execute a command
> or script on a remote linux box, probably through ssh

Generally, ssh supports remote commands; in *NIX-land, it'd be:

   % ssh RemoteHost ArbitraryCommand

Note that you may need other options, depending on... well, lots of
things.  But "in principle" it's pretty easy.  ;-)

Your mission, should you choose to accept it, is to find an SSH
implementation for Windows that offers comparable functionality.

Other options, in increasing oddity, might include basing your "autofire"
on a 1-step port-knocking method, with an inetd / xinetd entry that fires
when you "telnet RemoteHost 1337" (or whatever); or, setting a script to
watch for "does file exist" on, say, a once per minute basis -- FTP the
file up whenever you want the command to run (remember to have your script
delete the "RunNow" file!).


- Steve S.





More information about the talk mailing list