{"id":544,"date":"2026-08-04T22:54:30","date_gmt":"2026-08-04T22:54:30","guid":{"rendered":"https:\/\/windows-vps.org\/blog\/?p=544"},"modified":"2026-10-03T22:07:13","modified_gmt":"2026-10-03T22:07:13","slug":"setting-up-ftp-sftp-on-windows-vps-iis-ftp-vs-openssh","status":"publish","type":"post","link":"https:\/\/windows-vps.org\/blog\/setting-up-ftp-sftp-on-windows-vps-iis-ftp-vs-openssh\/","title":{"rendered":"FTP vs SFTP vs FTPS on a Windows VPS: IIS FTP vs OpenSSH Setup and Security"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Moving files to and from a Windows VPS is a solved problem, yet it is one of the most common support tickets. The confusion is usually terminology: FTP, FTPS, and SFTP are three different things, and Windows Server ships first-class support for all three. This article explains the differences with real port numbers and crypto details, then walks through both the IIS FTP role and OpenSSH-based SFTP so you can choose deliberately.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">FTP, FTPS, and SFTP are not the same<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Protocol<\/th><th>Default port<\/th><th>Encryption<\/th><th>Windows role<\/th><\/tr><\/thead><tbody><tr><td>FTP<\/td><td>21<\/td><td>None (cleartext)<\/td><td>IIS FTP Server<\/td><\/tr><tr><td>FTPS (explicit)<\/td><td>21<\/td><td>TLS<\/td><td>IIS FTP Server + cert<\/td><\/tr><tr><td>SFTP<\/td><td>22<\/td><td>SSH transport<\/td><td>OpenSSH Server<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Plain FTP sends credentials and data in the clear and should be considered retired. FTPS wraps the classic FTP conversation in TLS \u2014 useful when a partner&#8217;s tooling only speaks FTP. SFTP is an entirely different protocol tunneled over SSH, has a single port, and works through NAT far more cleanly. If you control both ends, SFTP is the better default.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Option A: IIS FTP with explicit TLS<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Install the role with <code>Install-WindowsFeature Web-Ftp-Server -IncludeManagementTools<\/code>. Then create the site and bind a certificate:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>New-WebFtpSite -Name \"CorpFTP\" -Port 21 -PhysicalPath \"D:\\ftp\\corp\"\nSet-ItemProperty \"IIS:\\Sites\\CorpFTP\" -Name ftpServer.security.ssl.controlChannelPolicy -Value 2\nSet-ItemProperty \"IIS:\\Sites\\CorpFTP\" -Name ftpServer.security.ssl.dataChannelPolicy -Value 2\nSet-ItemProperty \"IIS:\\Sites\\CorpFTP\" -Name ftpServer.security.authentication.basicAuthentication.enabled -Value $true<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Setting both control and data channel policy to <code>2<\/code> forces TLS on every connection, which also means you must open a passive port range in the firewall. Configure <code>ftpServer.security.ssl.serverCertHash<\/code> with your certificate thumbprint. A common failure is forgetting the passive range, resulting in successful login but failed directory listing.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Option B: OpenSSH SFTP<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Windows Server includes an OpenSSH Server capability. Install it, start the service, and SFTP is available on port 22 using local Windows accounts or an authorized_keys file.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0\nStart-Service sshd\nSet-Service -Name sshd -StartupType Automatic\nNew-NetFirewallRule -Name sshd -DisplayName 'OpenSSH Server' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To restrict key-based login to SFTP only, edit <code>sshd_config<\/code> and set the internal-sftp subsystem, then restart the service. Key authentication removes password brute-force risk entirely, which matters because SSH is scanned constantly on public IPs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Which to choose<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Automated app-to-app transfers on Windows:<\/strong> IIS FTPS, because it integrates with IIS users and quotas.<\/li><li><strong>Admins and CI\/CD pipelines:<\/strong> SFTP over OpenSSH with keys, single port, scriptable from any platform.<\/li><li><strong>Legacy partner requirement:<\/strong> FTPS only if plain FTP is impossible; never enable cleartext FTP on a public IP.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Hardening checklist<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Whichever path you take: disable anonymous access, scope the firewall rule to known source IPs where possible, put the file root on a separate volume or directory with explicit ACLs, and enable transfer logging. On the IIS side, per-site logging captures uploads; on the SSH side, the Windows event log and sshd log record sessions. Test fail2ban-equivalent protection by rate-limiting at the firewall, since there is no native equivalent on Windows.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Passive mode and NAT on cloud VPS<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">FTP uses a separate data connection, and in passive mode the server tells the client which port to open. On a VPS sitting behind a provider NAT or a firewall, that advertised address is often the private IP rather than the public one, which produces the classic &#8220;connects, authenticates, then hangs on LIST&#8221; symptom. The fix is to configure the external IP and a fixed passive port range in IIS:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Set-ItemProperty \"IIS:\\Sites\\CorpFTP\" -Name ftpServer.security.dataChannelPortRange -Value \"50000-50100\"\nnetsh advfirewall firewall add rule name=\"FTP Passive\" dir=in action=allow protocol=TCP localport=50000-50100<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If the provider does port forwarding at the edge, the public IP must be set in the site&#8217;s external address field as well, otherwise clients keep receiving the internal IP in the PASV response. SFTP has none of this complexity because everything flows over a single port, which is one more reason it is the better default.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Permissions and isolation<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Both stacks support user isolation. In IIS FTP, <code>ftpServer.userIsolation.mode<\/code> can be set to physical or virtual directory isolation so each user lands in their own folder with no visibility into others \u2014 essential for multi-tenant file drops. For SFTP, the cleanest approach is to create a local group, give it read or write ACLs on one directory, and use <code>AuthorizedKeysFile<\/code> per user so keys are independent. Never grant a file-transfer account membership in Administrators; the protocol is a data port, not an admin channel.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Performance and large transfers<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">For large files, FTPS and SFTP both add crypto overhead, but on modern VPS CPUs with AES-NI this is negligible compared to network throughput. The real limiters are TCP window sizing on high-latency links and disk write speed. If you routinely move multi-gigabyte files, prefer SFTP with a client that parallelizes streams, and ensure the data volume has enough IOPS. Small files are dominated by per-request round trips, so batching them into an archive before transfer is usually faster than any protocol tweak.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Monitoring transfers<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Enable logging on whichever stack you use and review it periodically. Failed authentication bursts against FTP or SSH are one of the earliest signals of a targeted attempt, and the pattern \u2014 many usernames from one source \u2014 is trivial to alert on. Combine that with source-IP allow-listing for fixed partners and you eliminate the majority of noise before it reaches an alert threshold.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A Windows VPS is an excellent file-transfer hub because both stacks are one role away. If you are provisioning a new box for this, <a href=\"https:\/\/windows-vps.org\/\">see our Windows VPS plans<\/a> to pick a configuration with enough disk for your data set, and review <a href=\"https:\/\/windows-vps.org\/\">our hosting documentation<\/a> for the recommended firewall baselines.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Moving files to and from a Windows VPS is a solved problem, yet it is one of the most common support tickets. The confusion is usually terminology: FTP, FTPS, and SFTP are three different things, and Windows Server ships first-class support for all three. This article explains the differences with real port numbers and crypto &#8230; <a title=\"FTP vs SFTP vs FTPS on a Windows VPS: IIS FTP vs OpenSSH Setup and Security\" class=\"read-more\" href=\"https:\/\/windows-vps.org\/blog\/setting-up-ftp-sftp-on-windows-vps-iis-ftp-vs-openssh\/\" aria-label=\"Read more about FTP vs SFTP vs FTPS on a Windows VPS: IIS FTP vs OpenSSH Setup and Security\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":6,"footnotes":""},"categories":[6],"tags":[],"class_list":["post-544","post","type-post","status-publish","format-standard","hentry","category-comparisons"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.1 (Yoast SEO v26.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>FTP vs SFTP vs FTPS on a Windows VPS: IIS FTP vs OpenSSH Setup and Security - Windows VPS Blog<\/title>\n<meta name=\"description\" content=\"Moving files to and from a Windows VPS is a solved problem, yet it is one of the most common support tickets. The confusion is usually terminology: FTP,\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/windows-vps.org\/blog\/setting-up-ftp-sftp-on-windows-vps-iis-ftp-vs-openssh\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"FTP vs SFTP vs FTPS on a Windows VPS: IIS FTP vs OpenSSH Setup and Security\" \/>\n<meta property=\"og:description\" content=\"FTP vs SFTP vs FTPS on a Windows VPS: IIS FTP vs OpenSSH Setup and Security\" \/>\n<meta property=\"og:url\" content=\"https:\/\/windows-vps.org\/blog\/setting-up-ftp-sftp-on-windows-vps-iis-ftp-vs-openssh\/\" \/>\n<meta property=\"og:site_name\" content=\"Windows VPS Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-04T22:54:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-03T22:07:13+00:00\" \/>\n<meta name=\"author\" content=\"windows-vps\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@myxiechengxuan\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"windows-vps\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/windows-vps.org\/blog\/setting-up-ftp-sftp-on-windows-vps-iis-ftp-vs-openssh\/\",\"url\":\"https:\/\/windows-vps.org\/blog\/setting-up-ftp-sftp-on-windows-vps-iis-ftp-vs-openssh\/\",\"name\":\"FTP vs SFTP vs FTPS on a Windows VPS: IIS FTP vs OpenSSH Setup and Security - Windows VPS Blog\",\"isPartOf\":{\"@id\":\"https:\/\/windows-vps.org\/blog\/#website\"},\"datePublished\":\"2026-08-04T22:54:30+00:00\",\"dateModified\":\"2026-10-03T22:07:13+00:00\",\"author\":{\"@id\":\"https:\/\/windows-vps.org\/blog\/#\/schema\/person\/44caceed916d0db318aa08d5623a7a58\"},\"description\":\"Moving files to and from a Windows VPS is a solved problem, yet it is one of the most common support tickets. The confusion is usually terminology: FTP,\",\"breadcrumb\":{\"@id\":\"https:\/\/windows-vps.org\/blog\/setting-up-ftp-sftp-on-windows-vps-iis-ftp-vs-openssh\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/windows-vps.org\/blog\/setting-up-ftp-sftp-on-windows-vps-iis-ftp-vs-openssh\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/windows-vps.org\/blog\/setting-up-ftp-sftp-on-windows-vps-iis-ftp-vs-openssh\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/windows-vps.org\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"FTP vs SFTP vs FTPS on a Windows VPS: IIS FTP vs OpenSSH Setup and Security\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/windows-vps.org\/blog\/#website\",\"url\":\"https:\/\/windows-vps.org\/blog\/\",\"name\":\"Windows VPS Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/windows-vps.org\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/windows-vps.org\/blog\/#\/schema\/person\/44caceed916d0db318aa08d5623a7a58\",\"name\":\"windows-vps\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/windows-vps.org\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3f2573db5afcd1a6ab9abcc5d48fc8e42584bc87ab9d98cc156e5b2097766dd9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3f2573db5afcd1a6ab9abcc5d48fc8e42584bc87ab9d98cc156e5b2097766dd9?s=96&d=mm&r=g\",\"caption\":\"windows-vps\"},\"sameAs\":[\"https:\/\/windows-vps.org\/blog\",\"https:\/\/x.com\/myxiechengxuan\"],\"url\":\"https:\/\/windows-vps.org\/blog\/author\/myxiechengxuan\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"FTP vs SFTP vs FTPS on a Windows VPS: IIS FTP vs OpenSSH Setup and Security - Windows VPS Blog","description":"Moving files to and from a Windows VPS is a solved problem, yet it is one of the most common support tickets. The confusion is usually terminology: FTP,","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/windows-vps.org\/blog\/setting-up-ftp-sftp-on-windows-vps-iis-ftp-vs-openssh\/","og_locale":"en_US","og_type":"article","og_title":"FTP vs SFTP vs FTPS on a Windows VPS: IIS FTP vs OpenSSH Setup and Security","og_description":"FTP vs SFTP vs FTPS on a Windows VPS: IIS FTP vs OpenSSH Setup and Security","og_url":"https:\/\/windows-vps.org\/blog\/setting-up-ftp-sftp-on-windows-vps-iis-ftp-vs-openssh\/","og_site_name":"Windows VPS Blog","article_published_time":"2026-08-04T22:54:30+00:00","article_modified_time":"2026-10-03T22:07:13+00:00","author":"windows-vps","twitter_card":"summary_large_image","twitter_creator":"@myxiechengxuan","twitter_misc":{"Written by":"windows-vps","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/windows-vps.org\/blog\/setting-up-ftp-sftp-on-windows-vps-iis-ftp-vs-openssh\/","url":"https:\/\/windows-vps.org\/blog\/setting-up-ftp-sftp-on-windows-vps-iis-ftp-vs-openssh\/","name":"FTP vs SFTP vs FTPS on a Windows VPS: IIS FTP vs OpenSSH Setup and Security - Windows VPS Blog","isPartOf":{"@id":"https:\/\/windows-vps.org\/blog\/#website"},"datePublished":"2026-08-04T22:54:30+00:00","dateModified":"2026-10-03T22:07:13+00:00","author":{"@id":"https:\/\/windows-vps.org\/blog\/#\/schema\/person\/44caceed916d0db318aa08d5623a7a58"},"description":"Moving files to and from a Windows VPS is a solved problem, yet it is one of the most common support tickets. The confusion is usually terminology: FTP,","breadcrumb":{"@id":"https:\/\/windows-vps.org\/blog\/setting-up-ftp-sftp-on-windows-vps-iis-ftp-vs-openssh\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/windows-vps.org\/blog\/setting-up-ftp-sftp-on-windows-vps-iis-ftp-vs-openssh\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/windows-vps.org\/blog\/setting-up-ftp-sftp-on-windows-vps-iis-ftp-vs-openssh\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/windows-vps.org\/blog\/"},{"@type":"ListItem","position":2,"name":"FTP vs SFTP vs FTPS on a Windows VPS: IIS FTP vs OpenSSH Setup and Security"}]},{"@type":"WebSite","@id":"https:\/\/windows-vps.org\/blog\/#website","url":"https:\/\/windows-vps.org\/blog\/","name":"Windows VPS Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/windows-vps.org\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/windows-vps.org\/blog\/#\/schema\/person\/44caceed916d0db318aa08d5623a7a58","name":"windows-vps","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/windows-vps.org\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3f2573db5afcd1a6ab9abcc5d48fc8e42584bc87ab9d98cc156e5b2097766dd9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3f2573db5afcd1a6ab9abcc5d48fc8e42584bc87ab9d98cc156e5b2097766dd9?s=96&d=mm&r=g","caption":"windows-vps"},"sameAs":["https:\/\/windows-vps.org\/blog","https:\/\/x.com\/myxiechengxuan"],"url":"https:\/\/windows-vps.org\/blog\/author\/myxiechengxuan\/"}]}},"_links":{"self":[{"href":"https:\/\/windows-vps.org\/blog\/wp-json\/wp\/v2\/posts\/544","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/windows-vps.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/windows-vps.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/windows-vps.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/windows-vps.org\/blog\/wp-json\/wp\/v2\/comments?post=544"}],"version-history":[{"count":3,"href":"https:\/\/windows-vps.org\/blog\/wp-json\/wp\/v2\/posts\/544\/revisions"}],"predecessor-version":[{"id":826,"href":"https:\/\/windows-vps.org\/blog\/wp-json\/wp\/v2\/posts\/544\/revisions\/826"}],"wp:attachment":[{"href":"https:\/\/windows-vps.org\/blog\/wp-json\/wp\/v2\/media?parent=544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/windows-vps.org\/blog\/wp-json\/wp\/v2\/categories?post=544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/windows-vps.org\/blog\/wp-json\/wp\/v2\/tags?post=544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}