Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to connect to a Windows Server machine command line without using RDP, in similar manner to SSHing to a Linux server? My tasks require running various commands in many Windows machines.

Should I just use Cygwin with OpenSSH Server and Screen? How stable is that?

share|improve this question
add comment

5 Answers

up vote 1 down vote accepted

If you want to remote manage and script Windows machines you should look into Powershell and Powershell Remoting

share|improve this answer
add comment

Of course. You already know the answer. OpenSSh will do it. There is a Windows compiled version called CopSSH that we've used successfully in production for years.

share|improve this answer
    
Windows also supports Telnet by default... but that isn't secure. Hopefully some day MS will get on the SSH boat. –  ubiquibacon Jun 8 '11 at 21:29
    
Depending on the version of Windows, telnet is available but not installed by default. –  uSlackr Jun 8 '11 at 21:31
    
Not installed, but supported. Install it by clicking on Windows Components in Add/Remove Programs. –  ubiquibacon Jun 8 '11 at 22:30
add comment

Microsoft has a product called Windows Remote Management. Here's one of the utilities:

Winrs.exe
This command line tool enables administrators to remotely execute most Cmd.exe commands using the WS-Management protocol.

Read more at: http://msdn.microsoft.com/en-us/library/aa384291%28v=vs.85%29.aspx

share|improve this answer
add comment

Depending upon your environment and requirements, you might look at pstools from Microsoft. It will allow you to run commands or scripts across several machines.

http://technet.microsoft.com/en-us/sysinternals/bb896649

I'm sure that PowerShell is a bit more elegant, but this set of tools is handy, especially if you have some vb scripts that that you haven't converted to PowerShell yet.

share|improve this answer
add comment

WinSSHD is an excellent SSH Server implementation for Windows. It's free for non-commercial use, and reasonably priced ($100 / Server) for commercal use.

share|improve this answer
add comment

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.