{"id":856,"date":"2021-02-08T12:52:29","date_gmt":"2021-02-08T12:52:29","guid":{"rendered":"https:\/\/www.velaninfo.com\/rs\/?post_type=techtips&#038;p=856"},"modified":"2021-02-08T13:09:06","modified_gmt":"2021-02-08T13:09:06","slug":"configure-sftp-server-openssh-windows-server-2016","status":"publish","type":"techtips","link":"https:\/\/www.velaninfo.com\/rs\/techtips\/configure-sftp-server-openssh-windows-server-2016\/","title":{"rendered":"How to configure SFTP Server using OpenSSH on Windows Server 2016?"},"content":{"rendered":"<p>SFTP stands for SSH file transfer protocol or Secure File Transfer Protocol. This pacgage works over a secure connection and the advantage is the ability to leverage a secure connection to transfer files and traverse the filesystem on both local and remote system.<\/p>\n<p>The following steps shows how to setup SFTP using OpenSSH on Windows 2016 Server<\/p>\n<p><strong>Step 1:<\/strong> Download the OpenSSH from the link <a href=\"https:\/\/github.com\/PowerShell\/Win32-OpenSSH\/releases\">https:\/\/github.com\/PowerShell\/Win32-OpenSSH\/releases&#8221;&gt;Make This Nofollow<\/a><\/p>\n<p><strong>Step 2:<\/strong> Locate the downloaded file, right-click and <em>Extract All<\/em> to C:\\Program Files\\OpenSSH-Win64<\/p>\n<p><strong>Step 3:<\/strong> Modify the Path system environment variable by running the command \u201c\/\u201d or add the variable in System Properties -&gt; Environment variable path<\/p>\n<p>To setup the environment variable using PowerShell \u2013<\/p>\n<ol>\n<li>Open PowerShell as Administrator<\/li>\n<li><em>Setx PATH \u201c$env:path; C:\\Program Files\\OpenSSH-Win64\u201d \u2013m<\/em><\/li>\n<\/ol>\n<p>You should see the following output-<\/p>\n<p><strong>SUCCESS:<\/strong> Specified value was saved<\/p>\n<p><strong>Step 4:<\/strong> Change to the OpenSSH directory<\/p>\n<p><em>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 cd \u201cC:\\Program Files\\OpenSSH-Win64\u201d<\/em><\/p>\n<p><strong>Step 5:<\/strong> Run the install script<\/p>\n<p><em>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 .\\install-sshd.ps1<\/em><\/p>\n<p>OR run in PowerShell as below<\/p>\n<p><em>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 PS C:\\windows\\system32&gt; powershell.exe \u2013ExecutionPolicy Bypass \u2013File install-sshd.ps1<\/em><\/p>\n<p><strong>Step 6:<\/strong> Enable automatic startup and start sshd and ssh-agent<\/p>\n<p><em>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Set-Service sshd -StartupType Automatic; Set-Service ssh-agent -StartupType Automatic; Start-Service sshd; Start-Service ssh-agent<\/em><\/p>\n<p><strong>Step 7:<\/strong> Allow Access in Windows Firewall<\/p>\n<p>a. Open Windows Firewall and create a new inbound rule for SFTP<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-857\" src=\"https:\/\/www.velaninfo.com\/rs\/wp-content\/uploads\/2021\/02\/Untitled.png\" alt=\"Windows Firewall \" width=\"498\" height=\"160\" \/><\/p>\n<p>b. Create a new rule and select custom and select protocol and ports<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-858\" src=\"https:\/\/www.velaninfo.com\/rs\/wp-content\/uploads\/2021\/02\/Untitled-1.png\" alt=\"protocol and ports\" width=\"502\" height=\"305\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-859\" src=\"https:\/\/www.velaninfo.com\/rs\/wp-content\/uploads\/2021\/02\/Untitled-2.png\" alt=\"Create a new rule and select custom and select protocol and ports\" width=\"505\" height=\"243\" \/><\/p>\n<p>c. Under the section Scope, let the rule apply <em>to Any IP Address<\/em> from remote and local IP addresses and click Next<\/p>\n<p>d. Under Action, select <em>Allow the connection<\/em> and click Next<\/p>\n<p>e. Name the Rule and select Finish<\/p>\n<p><strong>To enable port via PowerShell, please execute the follow command<\/strong><\/p>\n<p><em>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/em>&gt;<em>New-NetFirewallRule -Name sshd -DisplayName &#8216;OpenSSH SSH Server&#8217; -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22 -Program &#8220;C:\\System32\\OpenSSH\\sshd.exe&#8221;<\/em><\/p>\n<p><strong>Step 8:<\/strong> Edit the sshd_config file and make the following changes to add path and user \/group<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-860\" src=\"https:\/\/www.velaninfo.com\/rs\/wp-content\/uploads\/2021\/02\/Untitled-3.png\" alt=\"Edit the sshd_config file\" width=\"481\" height=\"258\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-861\" src=\"https:\/\/www.velaninfo.com\/rs\/wp-content\/uploads\/2021\/02\/Untitled-4.png\" alt=\"sshd_config file \" width=\"257\" height=\"145\" \/><\/p>\n<p><strong>Step 9:<\/strong> Stop and restart the sshd services by executing the following command<\/p>\n<p><em>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Net stop sshd<\/em><\/p>\n<p><em>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Net start sshd<\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-862\" src=\"https:\/\/www.velaninfo.com\/rs\/wp-content\/uploads\/2021\/02\/Untitled-5.png\" alt=\"Stop and restart the sshd services \" width=\"625\" height=\"139\" \/><\/p>\n<p>SFTP Is configured successfully using OpenSSH<\/p>\n<p>At <strong>Velan<\/strong>, our server support engineers can help you setup sftp server using OpenSSH on Windows 2016 server. We troubleshoot problems like these for our clients every day.\u00a0If you are interested in our service, please fill the <a href=\"https:\/\/www.velaninfo.com\/contact\"><strong>Quick connect<\/strong><\/a> form to get in touch with us<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SFTP stands for SSH file transfer protocol or Secure File Transfer Protocol. This pacgage works over a secure connection and the advantage is the ability to leverage a secure connection to transfer files and traverse the filesystem on both local and remote system. The following steps shows how to setup SFTP using OpenSSH on Windows&#8230;<a class=\"continue-reading text-uppercase\" href=\"https:\/\/www.velaninfo.com\/rs\/techtips\/configure-sftp-server-openssh-windows-server-2016\/\"> Continue Reading <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.velaninfo.com\/rs\/wp-content\/themes\/velaninfo\/images\/reading_arw.png\" alt=\"Continue Reading\" width=\"16\" height=\"12\"\/><\/a><\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"tags":[],"class_list":["post-856","techtips","type-techtips","status-publish","hentry","Categories_tech_tip-security-server-windows","Categories_tech_tip-server-windows","Categories_tech_tip-windows"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v19.5 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to configure SFTP Server using OpenSSH on Windows Server 2016| Velan<\/title>\n<meta name=\"description\" content=\"Steps to configure SFTP Server usingOpenSSH on Windows Server 2016\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.velaninfo.com\/rs\/techtips\/configure-sftp-server-openssh-windows-server-2016\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to configure SFTP Server using OpenSSH on Windows Server 2016?\" \/>\n<meta property=\"og:description\" content=\"Steps to configure SFTP Server usingOpenSSH on Windows Server 2016\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.velaninfo.com\/rs\/techtips\/configure-sftp-server-openssh-windows-server-2016\/\" \/>\n<meta property=\"og:site_name\" content=\"Velan\" \/>\n<meta property=\"article:modified_time\" content=\"2021-02-08T13:09:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.velaninfo.com\/rs\/wp-content\/uploads\/2021\/02\/Untitled.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/configure-sftp-server-openssh-windows-server-2016\\\/\",\"url\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/configure-sftp-server-openssh-windows-server-2016\\\/\",\"name\":\"How to configure SFTP Server using OpenSSH on Windows Server 2016| Velan\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/configure-sftp-server-openssh-windows-server-2016\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/configure-sftp-server-openssh-windows-server-2016\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/Untitled.png\",\"datePublished\":\"2021-02-08T12:52:29+00:00\",\"dateModified\":\"2021-02-08T13:09:06+00:00\",\"description\":\"Steps to configure SFTP Server usingOpenSSH on Windows Server 2016\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/configure-sftp-server-openssh-windows-server-2016\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/configure-sftp-server-openssh-windows-server-2016\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/configure-sftp-server-openssh-windows-server-2016\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/Untitled.png\",\"contentUrl\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/Untitled.png\",\"width\":498,\"height\":160,\"caption\":\"Windows Firewall\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/configure-sftp-server-openssh-windows-server-2016\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tech Tips\",\"item\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to configure SFTP Server using OpenSSH on Windows Server 2016?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/#website\",\"url\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/\",\"name\":\"Velan\",\"description\":\"Velaninfo Services India Pvt Ltd\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to configure SFTP Server using OpenSSH on Windows Server 2016| Velan","description":"Steps to configure SFTP Server usingOpenSSH on Windows Server 2016","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:\/\/www.velaninfo.com\/rs\/techtips\/configure-sftp-server-openssh-windows-server-2016\/","og_locale":"en_US","og_type":"article","og_title":"How to configure SFTP Server using OpenSSH on Windows Server 2016?","og_description":"Steps to configure SFTP Server usingOpenSSH on Windows Server 2016","og_url":"https:\/\/www.velaninfo.com\/rs\/techtips\/configure-sftp-server-openssh-windows-server-2016\/","og_site_name":"Velan","article_modified_time":"2021-02-08T13:09:06+00:00","og_image":[{"url":"https:\/\/www.velaninfo.com\/rs\/wp-content\/uploads\/2021\/02\/Untitled.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/configure-sftp-server-openssh-windows-server-2016\/","url":"https:\/\/www.velaninfo.com\/rs\/techtips\/configure-sftp-server-openssh-windows-server-2016\/","name":"How to configure SFTP Server using OpenSSH on Windows Server 2016| Velan","isPartOf":{"@id":"https:\/\/www.velaninfo.com\/rs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/configure-sftp-server-openssh-windows-server-2016\/#primaryimage"},"image":{"@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/configure-sftp-server-openssh-windows-server-2016\/#primaryimage"},"thumbnailUrl":"https:\/\/www.velaninfo.com\/rs\/wp-content\/uploads\/2021\/02\/Untitled.png","datePublished":"2021-02-08T12:52:29+00:00","dateModified":"2021-02-08T13:09:06+00:00","description":"Steps to configure SFTP Server usingOpenSSH on Windows Server 2016","breadcrumb":{"@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/configure-sftp-server-openssh-windows-server-2016\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.velaninfo.com\/rs\/techtips\/configure-sftp-server-openssh-windows-server-2016\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/configure-sftp-server-openssh-windows-server-2016\/#primaryimage","url":"https:\/\/www.velaninfo.com\/rs\/wp-content\/uploads\/2021\/02\/Untitled.png","contentUrl":"https:\/\/www.velaninfo.com\/rs\/wp-content\/uploads\/2021\/02\/Untitled.png","width":498,"height":160,"caption":"Windows Firewall"},{"@type":"BreadcrumbList","@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/configure-sftp-server-openssh-windows-server-2016\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.velaninfo.com\/rs\/"},{"@type":"ListItem","position":2,"name":"Tech Tips","item":"https:\/\/www.velaninfo.com\/rs\/techtips\/"},{"@type":"ListItem","position":3,"name":"How to configure SFTP Server using OpenSSH on Windows Server 2016?"}]},{"@type":"WebSite","@id":"https:\/\/www.velaninfo.com\/rs\/#website","url":"https:\/\/www.velaninfo.com\/rs\/","name":"Velan","description":"Velaninfo Services India Pvt Ltd","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.velaninfo.com\/rs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/856","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips"}],"about":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/types\/techtips"}],"author":[{"embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/comments?post=856"}],"version-history":[{"count":5,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/856\/revisions"}],"predecessor-version":[{"id":868,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/856\/revisions\/868"}],"wp:attachment":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/media?parent=856"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/tags?post=856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}