0

Is it possible to run an executable on a remote machine using telnet?

I connect to a windows XP machine via telnet and then I execute the exe by issuing this simple command.

RunProgramme.exe

No errors, but I don't think the program run as it does not create a directory which it should. If I remote in to the remote machine uisng RDP and execute the run the command in the same way directly it works!

I have turned off firewall and any antivrius but that didn't make a difference. What else should I do?

3
  • You may also be interested in psexec, which will allow remote execution of applications.
    – jscott
    Jun 20, 2011 at 18:48
  • I am trying to switch away from psexec its caused me a lot of headache! Thanks for suggesting it though. Plus I need something universal so I can run commands on a linux box too.
    – Abs
    Jun 20, 2011 at 18:49
  • On Linux the solution is definitively SSH! Using telnet as a "universal" for remote command execution system is pretty much unthinkable these days.
    – Caleb
    Jun 23, 2011 at 20:41

2 Answers 2

4

Have you thought of using SSH? I know the Cygwin provides the SSH server and runs as a service. Using SSH would be a better solution than using telnet, at minimum from a security point of view, and the fact that you can put a command on the SSH line to be run.

1
  • I second the SSH solution. If you don't like a Cygwin stack on your destination machine, you could try the CopSSH package (itefix.no/i2/copssh). Jun 20, 2011 at 20:30
1

PSEXEC is the tool to use for this. Not TELNET. You say PSEXEC gave you a headache. But TELNET clearly isn't working - give it another shot.

1
  • Or at least explain which headaches telnet will prevent. Jun 24, 2011 at 11:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .