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.


5 Answers 5


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

PuTTY for shell access.

enter image description here

WinSCP (UI, no cmd) for file transfers.

enter image description here

  • 13
    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, 2011 at 15:35
  • PuTTY includes PSFTP, which is a command-line sftp client.
    – Ben Voigt
    Sep 18, 2011 at 16:12
  • WinSCP does have a command-line version, part of the main package. Sep 18, 2011 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, 2011 at 19:01

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.


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.


+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.

You must log in to answer this question.

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