Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
    
You may also be interested in psexec, 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 Answers 2

up vote 4 down vote accepted

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.

share|improve this answer
    
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). –  desasteralex Jun 20 '11 at 20:30

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.

share|improve this answer
    
Or at least explain which headaches telnet will prevent. –  reinierpost Jun 24 '11 at 11:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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