Does Windows Server 2012 R2 have native SFTP support?
I see a role
FTP Server but it doesn't say whether this includes SFTP.
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
Microsoft IIS server does not support SFTP (or SSH) at all, on any version of IIS or Windows.
IIS supports secure FTP (FTPS or FTP over TLS/SSL) though. It's a different (incompatible) protocol than SFTP, but most "FTP" clients support both SFTP and FTPS.
When setting up an FTPS server, make sure you disable plain (unencrypted) FTP!
See (my) guide on Installing Secure FTP Server on Windows using IIS.
Microsoft recently released OpenSSH for Windows (Releases and Downloads). 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. It can also be manually installed on older versions of Windows.
I have prepared a guide for setting up SSH/SFTP server on Windows using this Microsoft build of OpenSSH.