Windows equivalent of SSH

19,313

Solution 1

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

Solution 2

PuTTY for shell access.

enter image description here

WinSCP (UI, no cmd) for file transfers.

enter image description here

Solution 3

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.

Solution 4

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.

Solution 5

+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:
19,313

Related videos on Youtube

Riveascore
Author by

Riveascore

Updated on September 18, 2022

Comments

  • Riveascore
    Riveascore over 1 year

    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.

  • akira
    akira over 12 years
    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" ...
  • Ben Voigt
    Ben Voigt over 12 years
    PuTTY includes PSFTP, which is a command-line sftp client.
  • Naidim
    Naidim over 12 years
    @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.
  • anishpatel
    anishpatel almost 8 years
    I found HTG's Powershell remoting guide easier and quicker to follow.