{"id":21199,"date":"2024-03-26T17:07:07","date_gmt":"2024-03-27T00:07:07","guid":{"rendered":"https:\/\/portasftpserver.com\/?p=21199"},"modified":"2025-05-27T09:55:25","modified_gmt":"2025-05-27T16:55:25","slug":"how-to-run-porta-sftp-server-as-windows-service","status":"publish","type":"post","link":"https:\/\/portasftpserver.com\/how-to-run-porta-sftp-server-as-windows-service\/","title":{"rendered":"How To Run Porta SFTP Server As Windows Service"},"content":{"rendered":"\n<p class=\"sera-block-paragraph\">In this post, you will learn how to use Porta SFTP Server as a Windows Service (Linux &#8211; Coming soon). However, it is important to know that you only need this if you want to run a long-live SFTP Server that can be started whether the user is logged in or not on the computer. This means the SFTP Server will run in a daemon\/background and will not have a user interface (UI). <\/p>\n\n\n\n<p class=\"sera-block-paragraph\">To enable the Porta SFTP Server to run as a service, you have to make sure that you are using version 3.1.0 or higher. This later version uses <a href=\"https:\/\/commons.apache.org\/proper\/commons-daemon\/procrun.html\" target=\"_blank\" rel=\"noreferrer noopener\">Apache Common \u2013 <strong>Daemon : Procrun<\/strong><\/a> as a wrapper for the Porta SFTP Server in order to work as a Windows Service.<\/p>\n\n\n\n<h2 class=\"sera-block-heading\">Required Version &amp; Files<\/h2>\n\n\n\n<figure class=\"sera-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1044\" height=\"133\" src=\"https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-12.png\" alt=\"\" class=\"sera-image-24615\" srcset=\"https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-12.png 1044w, https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-12-585x75.png 585w, https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-12-768x98.png 768w, https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-12-100x13.png 100w\" sizes=\"auto, (max-width: 1044px) 100vw, 1044px\" \/><\/figure>\n\n\n\n<p class=\"sera-block-paragraph\"><em>Note. <\/em>These files come with the Porta SFTP Server Zip file.<\/p>\n\n\n\n<h2 class=\"sera-block-heading\">Service Installation<\/h2>\n\n\n\n<p class=\"sera-block-paragraph\">Next, run the Porta SFTP Server go to the <em>Server Settings, <\/em>and tick\/check the &#8220;Run As a Windows Service&#8221;. This will call the prunsrv.exe and install it as a Windows Service to use the Porta SFTP Server.<\/p>\n\n\n\n<figure class=\"sera-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"934\" height=\"626\" src=\"https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-1.png\" alt=\"\" class=\"sera-image-21212\" srcset=\"https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-1.png 934w, https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-1-585x392.png 585w, https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-1-768x515.png 768w, https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-1-100x67.png 100w\" sizes=\"auto, (max-width: 934px) 100vw, 934px\" \/><\/figure>\n\n\n\n<p class=\"sera-block-paragraph\"><em>Note.<\/em> This will need a admin privileges and will prompt you to provide the admin credentials. Also, make sure to tick\/check the <em>&#8220;Server Auto Start&#8221;<\/em> to allow the SFTP Server to automatically start.<\/p>\n\n\n\n<h2 class=\"sera-block-heading\">Starting Service<\/h2>\n\n\n\n<p class=\"sera-block-paragraph\">After the installation, click the &#8220;Start&#8221; button to start the installed Windows Service. This will also restart the Porta SFTP Server application to connect the User Interface (UI) to the service.<\/p>\n\n\n\n<figure class=\"sera-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"938\" height=\"597\" src=\"https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-4.png\" alt=\"\" class=\"sera-image-21229\" srcset=\"https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-4.png 938w, https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-4-585x372.png 585w, https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-4-768x489.png 768w, https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-4-100x64.png 100w\" sizes=\"auto, (max-width: 938px) 100vw, 938px\" \/><\/figure>\n\n\n\n<p class=\"sera-block-paragraph\"><em>Note. <\/em>During the start, this will may freeze the UI 3-5 seconds. If so, please wait.<\/p>\n\n\n\n<h2 class=\"sera-block-heading\">Verifying Installed Service<\/h2>\n\n\n\n<p class=\"sera-block-paragraph\">Once the application has been restarted, you should get a log like the following. This indicates that the UI is connected to the Windows service.<\/p>\n\n\n\n<figure class=\"sera-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"937\" height=\"742\" src=\"https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-13.png\" alt=\"\" class=\"sera-image-21510\" srcset=\"https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-13.png 937w, https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-13-585x463.png 585w, https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-13-768x608.png 768w, https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-13-100x79.png 100w\" sizes=\"auto, (max-width: 937px) 100vw, 937px\" \/><\/figure>\n\n\n\n<p class=\"sera-block-paragraph\"><em>Note. <\/em>At this time, you should be able to connect any SFTP Client to the SFTP Server.<\/p>\n\n\n\n<h2 class=\"sera-block-heading\">Removing Service<\/h2>\n\n\n\n<p class=\"sera-block-paragraph\">Now, to uninstall the Windows Server, you have to do the reverse such as:<\/p>\n\n\n\n<ul class=\"sera-block-list\">\n<li>Stop the service using the &#8220;Server Settings&#8221; form<\/li>\n\n\n\n<li>Uncheck the &#8220;Run As a Windows Service&#8221; Check Box<\/li>\n\n\n\n<li>And Restart the Porta SFTP Server<\/li>\n<\/ul>\n\n\n\n<h2 class=\"sera-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"sera-block-paragraph\">In conclusion, this post shows how to use the Porta SFTP Server as a Windows Service. This new capability is made possible by open-source Windows Service Wrapper <a href=\"https:\/\/commons.apache.org\/proper\/commons-daemon\/procrun.html\">Daemon \u2013 Daemon : Procrun<\/a>. That said, you can now let the Porta SFTP Server run in the background.<\/p>\n\n\n\n<p class=\"sera-block-paragraph\"><\/p>\n\n\n\n<p class=\"sera-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post, you will learn how to use Porta SFTP Server as a Windows Service (Linux &#8211; Coming soon). However, it is important to know that you only need this if you want to run a long-live SFTP Server that can be started whether the user is logged in or not on the computer. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":21202,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[189,1],"tags":[283,282,284,281],"class_list":["post-21199","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-free-software","category-programming-software","tag-enable-sftp-server-as-a-windows-service","tag-how-to-use-porta-sftp-server-as-a-windows-service","tag-how-to-use-winsw-for-sftp-server","tag-sftp-server-as-a-windows-service"],"_links":{"self":[{"href":"https:\/\/portasftpserver.com\/sera-json\/wp\/v2\/posts\/21199","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/portasftpserver.com\/sera-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/portasftpserver.com\/sera-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/portasftpserver.com\/sera-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/portasftpserver.com\/sera-json\/wp\/v2\/comments?post=21199"}],"version-history":[{"count":45,"href":"https:\/\/portasftpserver.com\/sera-json\/wp\/v2\/posts\/21199\/revisions"}],"predecessor-version":[{"id":24623,"href":"https:\/\/portasftpserver.com\/sera-json\/wp\/v2\/posts\/21199\/revisions\/24623"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/portasftpserver.com\/sera-json\/wp\/v2\/media\/21202"}],"wp:attachment":[{"href":"https:\/\/portasftpserver.com\/sera-json\/wp\/v2\/media?parent=21199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/portasftpserver.com\/sera-json\/wp\/v2\/categories?post=21199"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/portasftpserver.com\/sera-json\/wp\/v2\/tags?post=21199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}