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?

Abs
  • 1,429
  • 4
  • 18
  • 32
  • You may also be interested in [`psexec`](http://technet.microsoft.com/en-us/sysinternals/bb897553), which will allow remote execution of applications. – jscott Jun 20 '11 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 '11 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 '11 at 20:41

2 Answers2

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.

mdpc
  • 11,698
  • 28
  • 51
  • 65
  • I second the SSH solution. If you don't like a Cygwin stack on your destination machine, you could try the CopSSH package (http://www.itefix.no/i2/copssh). – desasteralex Jun 20 '11 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.

dunxd
  • 9,482
  • 21
  • 80
  • 117