Super User is a question and answer site for computer enthusiasts and power users. 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

Which is the best way to remotely access command shell(cmd) of a remote system. I need to run certain command line applications in my office system from home? Is there any platform independent tool to do it, eg to access windows command prompt of office computer from linux machine at home.

share|improve this question
up vote 2 down vote accepted

It sounds like your best bet would be SSH. There are several options available for installing it on Windows, see here for a good article summarising them.

You could also use Cygwin and set up its openssh package from within it. This will provide you with a bash shell available remotely. For your purposes though, the previous option would probably suit you better as you will be able to access the traditional windows cmd prompt.

share|improve this answer
+1. SSH was designed exactly for this scenario, and it's very secure. – Chris W. Rea Aug 26 '09 at 12:47

It looks like PowerShell might be your best option. There was a similar question asked on StackOverflow a while back.

share|improve this answer
Is it not the case that using powershell one would be restricted to Windows at both ends - the question specifically asks for a solution allowing administration of a Windows machine from a linux one. However, maybe its worth looking into Pash (, an open source powershell clone based on Mono. Its not yet finished so may not be up to the job. – Mark Embling Aug 26 '09 at 11:14
@Splash - I obviously did not read the question closely enough. Pash looks interesting, though. – firedfly Aug 26 '09 at 11:44

Sysinternal's PSExec (part of PSTools) allows a command line to be executed remotely (or in a different session locally). This is not interactive however.

share|improve this answer

I haven't tried this yet on Linux, but have a look on Hamachi. It will allow to configure a VPN which will allow you to establish connection via the Internet.

share|improve this answer

Pstools's psexec can do that:

psExec \\computer cmd.exe

netcat (Cygwin and several ports to Windows are available) can also do it. Run this on the remote machine:

nc.exe -l -p6969 -d -e cmd.exe -L

And this on your local:

nc.exe 6969

IPs and ports are just examples. Also check Ncat, which claims to be an improved and up-to-date version of Netcat.

share|improve this answer

Your Answer


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.