3

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?

0

3 Answers 3

6

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.

2
  • 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, 2010 at 17:45
  • I don't see how this relates to SSH - or the question is very badly written ?!
    – sorin
    Aug 20, 2012 at 14:51
4

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

http://www.bitvise.com/winsshd

2
  • 2
    +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, 2010 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, 2011 at 22:27
2

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

1
  • But is it able to tunnel like putty.exe , winsshd, or ssh can do?
    – djangofan
    Nov 15, 2011 at 22:27

You must log in to answer this question.

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