According to BizTalk 2016 install requirements, if you want to use the SFTP adapter, you need to install a specific version (5.7.7) of WinSCP. If you follow the link on that page, it takes you to the current release, and there’s no obvious way to find the previous downloads.
BUT – see the note below. If you have installed any feature packs or cumulative updates after the initial BizTalk 2016 release, you may need a different version of WinSCP.
It’s harder to find the old versions of WinSCP, so here is the link to get it from SourceForge: https://sourceforge.net/projects/winscp/files/WinSCP/5.7.7/
BizTalk 2020 requires WinSCP version 5.15.4. It can be downloaded here: https://sourceforge.net/projects/winscp/files/WinSCP/5.15.4/
HOWEVER…
You also need to install the WinSCP .NET library. See my previous blog on SFTP install for BizTalk 2106. It refers to another site that has a PowerShell Script to install everything necessary.
ALSO…
The best script that handles multiple releases, feature packs, and cumulative updates can be found here:
Updated: Jan 19, 2021 – This is now an improved Powershell Script to install the proper version of WinSCP for BizTalk 2016 or BizTalk 2020, you can copy/paste it from this page: https://www.phidiax.com/blog/post/biztalk-server-auto-install-script-for-sftp-requirement-of-winscp
It’s smart enough to know which version of WinSCP to install for BizTalk for the most recent releases, features packs and cumulative updates.
From the comments in that program, you can see which version of WinSCP is related to the particular version of BizTalk you are running:
# BizTalk Server 2016 #CU name Build version KB number Release day WinSCP Version #CU7 3.12.859.2 4528776 January 22, 2020 WinSCP 5.15.9 #CU6 3.12.843.2 4477494 February 28, 2019 WinSCP 5.13.1 #CU5 3.12.834.2 4132957 June 25, 2018 WinSCP 5.13.1 #CU4 3.12.823.2 4051353 January 30, 2018 WinSCP 5.7.7 #CU3 3.12.815.2 4039664 September 01, 2017 WinSCP 5.7.7 #CU2 3.12.807.2 4021095 May 26, 2017 WinSCP 5.7.7 #CU1 3.12.796.2 3208238 January 26, 2017 WinSCP 5.7.7 #NonCU 3.12.xxx.x NA October 11, 2016 WinSCP 5.7.7 # BizTalk Server 2020 #CU name Build version KB number Release day WinSCP Version #NonUC 3.13.717.0 NA January 15, 2020 WinSCP 5.15.4