Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 have a Windows Server 2008 machine. 99% of the time, all I need to do to administer it is run command line commands such as hg fetch. I would like to move from Remote Desktop to just opening a (secure) command-line session.

Some googling found this article which only lists third-party ssh servers for Windows. I want the most "legit" option. What do you recommend?

share|improve this question
up vote 6 down vote accepted

Install Powershell 2.0

In powershell on the server enter:

set-executionpolicy remotesigned -force

enable-psremoting -force

Then from a remote machine (that has powershell enabled) initiate a remote connection:

etsn -cred username -comp targetname

If you are on the same domain and have proper authorization you can skip the '-cred username' part, but I've found if you're crossing domains with non-mutual trust then it is necessary to use credentials of the remote domain.

Also if you want to just issue one command you can do something like...

icm targetname {$host }

The above should be enough to get you started down the magical world of powershell remoting.

share|improve this answer
note: on the client, I had to install powershell 2.0 for server 2003 x64 since there isn't an x64 version of Windows XP – adambox Sep 7 '10 at 17:45
I don't see how this relates to SSH - or the question is very badly written ?! – sorin Aug 20 '12 at 14:51

We have used WinSSHD for years. It is rock-solid.

share|improve this answer
+1 for WinSSHD. It may be third party but it integrates well and is simple to setup. That said it sounds as though you don't need any of the extra features a full-blown ssh daemon provides, so the powershell option might be best. – imoatama Sep 3 '10 at 7:26
My favorite part about WinSSHD is the FTP window in the Tunnelier client PLUS the ability to run WinSSHD on any port you want, for security through obscurity. – djangofan Nov 15 '11 at 22:27

Forget SSH and learn how to use PowerShell remotely. PowerShell supports secure remote execution per default in the newest version.

share|improve this answer
But is it able to tunnel like putty.exe , winsshd, or ssh can do? – djangofan Nov 15 '11 at 22:27

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.