Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know that using WinRS or PsExec can do it from a Windows box, but I really need to do it from a linux box.

And Cygwin/OpenSSHd is not an option for license issues.

Any suggestions?

share|improve this question

marked as duplicate by mdpc, Evan Anderson, EEAA, Khaled, dunxd Mar 7 '13 at 13:44

This question was marked as an exact duplicate of an existing question.

The RSHD suggested in the answers of this question, is insecure... Security is also an issue that we need to consider. – ciphor Mar 7 '13 at 5:02
What are the license issues that preclude the use of cygwin/openssh ? Lots of other solutions may be invalid for the same reason. – Iain Mar 7 '13 at 6:50
It is company policy issue, GPLv3 is not allowed. – ciphor Mar 7 '13 at 7:21
  • I usually push for Cygwin + sshd because it integrates well.

  • You could also consider a simple home-made command listener on specific port (telnet-alike or more specific) wrapped by stunnel for security.

  • Another approach is CGI-script on Windows web-server.

    This approach is generic enough and can be run over HTTPS for security, but I would only suggest it for well-established interfaces (not for quick immediate stuff), when you are ready to run web-server for it.

UPDATE regarding CGI

I guess you can start here to run CGI server on Windows.

Calling remote command over CGI from Linux can be done by curl.

One googled introduction is complete enough and has sample C program to start with. To make the CGI approach clear, you may avoid web-server for testing by setting proper environment variables locally and running CGI program directly from command line.

share|improve this answer
Do you have an example about the CGI script you mentioned? – ciphor Mar 7 '13 at 6:42
@ciphor, I've added links with samples. All you need is to read environment variable from your CGI script to get input. The topic goes pretty far: security, web-server configuration, sample programs to do this and that, etc. I hope it can get you started. – uvsmtid Mar 7 '13 at 9:38

Not the answer you're looking for? Browse other questions tagged or ask your own question.