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.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityI 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.
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
.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.
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.