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.

I don't know Windows very well and only vaguely know my way around the Command Prompt.

Is there an equivalent to SSHing into another Windows computer via cmd? Equivalents to SCP and other Linux commands would be nice as well.

share|improve this question

migrated from stackoverflow.com Sep 18 '11 at 15:08

This question came from our site for professional and enthusiast programmers.

    
possible duplicate of Want to have SSH on windows like LINUX OR MAC –  Linker3000 Sep 18 '11 at 15:19
1  
If you are vaguely aware of cmd, just use Remote Desktop. –  Capt.Nemo Sep 22 '11 at 17:53
add comment

5 Answers

PuTTY for shell access.

enter image description here

WinSCP (UI, no cmd) for file transfers.

enter image description here

share|improve this answer
7  
well, winscp and putty are only the client-parts of the problem OP has. you also need the ssh-server on the other windows machines ... the 2nd part of "Is there an equivalent to SSHing into another Windows computer via cmd" ... –  akira Sep 18 '11 at 15:35
    
PuTTY includes PSFTP, which is a command-line sftp client. –  Ben Voigt Sep 18 '11 at 16:12
    
WinSCP does have a command-line version, part of the main package. –  grawity Sep 18 '11 at 17:05
1  
@grawity: Yeah, but it's actually a .com command line interface to the full .exe application, which is needed for it to work. You of course know that, but I thought I'd just mention that. –  paradroid Sep 18 '11 at 19:01
add comment

In order to connect another Windows computer using SSH, an SSH server would have to be running on the that computer. SSH isn't part of Windows, so this would have to be installed and configured. Take a look at Cygwin if this is what you're interested in doing. (Cygwin will also provide you a more familiar feeling command-line SSH, as well as other familiar Unix tools.)

If you're looking for the "Windows way" of doing these things, have a look at Remote Desktop (although it is graphical, not command-line based).

You can enable Remote Access on the target machine which will allow you to connect to it with Remote Desktop. You can also transfer files back and forth by mapping a drive back to your own computer if you configure your connection to allow access to local resources.

share|improve this answer
add comment

PowerShell comes with Remoting capabilities in WinRM:

PS C:\> enter-pssession otherhost

In XP, you could use PSExec, but this is only recommended over secure LANs:

psexec \\otherhost cmd
share|improve this answer
add comment

I've always felt uncomfortable advising the use of Cygwin for one single function. There is an alternative, however: freeSSHd. The project, unfortunately, is quite inactive, but it should be a match to Cygwin, especially if you don't want to clutter your PATH and other variables.

When installed and configured, you can use PuTTY for ssh access.

share|improve this answer
add comment

+1 The PuTTY developer also provides pscp (for scp) psftp (for sftp) and several other programs for agents etc.. (See the Downloads section for details on the programs) For more traditional *nix commands, you can download Cygwin (which also has scp etc..) or, if you're trying to transition into the windows world depending on your windows version, powershell can make the transition, from a scripting and command aliasing position, a little less painful.

share|improve this answer
add comment

Your Answer

 
discard

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