How do I download SCP and ssh on Cygwin?

SshCygwinScp

Ssh Problem Overview


I have downloaded Cygwin on windows 8 and use it for python scripts. How do I get SCP and ssh on Cygwin without having to use WinSCP and Putty?

Ssh Solutions


Solution 1 - Ssh

When you run the Cygwin installer again to install new packages, you might notice that searching for "scp" produces no results.

It's actually part of the "openssh" package.

Solution 2 - Ssh

Whenever you want to add new packages to Cygwin you run the setup.exe file again as if installing from scratch. The Cygwin setup can be downloaded here. then search for the openssh package and install it. (remember you can do this even after having it installed, it'll just add what you need)

Solution 3 - Ssh

Nowadays, you do not need Cygwin to get Windows OpenSSH build.

You can use Win32-OpenSSH, what is Microsoft official build of OpenSSH for Windows. On Windows 10 version 1803 or newer, you already have OpenSSH built-in. On older versions of Windows 10, it can be installed as an optional Windows feature. On older versions of Windows, you can just extract the scp.exe, ssh.exe and libcrypto.dll from a .zip (latest release), no installation is need.


Another way is to install Windows subsystem for Linux. The OpenSSH sftp and ssh are included.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAsherView Question on Stackoverflow
Solution 1 - SshDestyView Answer on Stackoverflow
Solution 2 - SshZach MView Answer on Stackoverflow
Solution 3 - SshMartin PrikrylView Answer on Stackoverflow