{"id":21273,"date":"2024-03-27T20:44:26","date_gmt":"2024-03-28T03:44:26","guid":{"rendered":"https:\/\/portasftpserver.com\/?p=21273"},"modified":"2024-03-29T10:34:05","modified_gmt":"2024-03-29T17:34:05","slug":"how-to-setup-porta-sftp-server-on-linux","status":"publish","type":"post","link":"https:\/\/portasftpserver.com\/how-to-setup-porta-sftp-server-on-linux\/","title":{"rendered":"How To Setup Porta SFTP Server on Linux"},"content":{"rendered":"\n<h2 class=\"sera-block-heading\">Required Files<\/h2>\n\n\n\n<p class=\"sera-block-paragraph\">Currently, to run the Porta SFTP Server on Linux (Ubuntu 20.04+), you only need to have the following files. Note that the files from your Windows installation (if you have one) can be reused(Copied over) to Ubuntu directly except the ones with the &#8220;.exe&#8221; extension. <\/p>\n\n\n\n<figure class=\"sera-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"196\" src=\"https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-7-1200x196.png\" alt=\"\" class=\"sera-image-21279\" srcset=\"https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-7-1200x196.png 1200w, https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-7-585x95.png 585w, https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-7-768x125.png 768w, https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-7-100x16.png 100w, https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-7.png 1276w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<h2 class=\"sera-block-heading\">Installing Java OpenJDK 17<\/h2>\n\n\n\n<div class=\"sera-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#abb2bf;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"sudo apt install openjdk-17-jdk openjdk-17-jre\" style=\"color:#abb2bf;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki one-dark-pro\" style=\"background-color: #282c34\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #61AFEF\">sudo<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #98C379\">apt<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #98C379\">install<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #98C379\">openjdk-17-jdk<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #98C379\">openjdk-17-jre<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"sera-block-paragraph\">Then verify using &#8220;java -version&#8221; command<\/p>\n\n\n\n<figure class=\"sera-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"775\" height=\"74\" src=\"https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/Screenshot-2024-03-27-205451.jpg\" alt=\"\" class=\"sera-image-21296\" style=\"width:1031px;height:auto\" srcset=\"https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/Screenshot-2024-03-27-205451.jpg 775w, https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/Screenshot-2024-03-27-205451-585x56.jpg 585w, https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/Screenshot-2024-03-27-205451-768x73.jpg 768w, https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/Screenshot-2024-03-27-205451-100x10.jpg 100w, https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/Screenshot-2024-03-27-205451-760x74.jpg 760w\" sizes=\"auto, (max-width: 775px) 100vw, 775px\" \/><\/figure>\n\n\n\n<h2 class=\"sera-block-heading\">File Permission<\/h2>\n\n\n\n<p class=\"sera-block-paragraph\">Right click the jar file -&gt;Permissions tab and tick\/check the &#8220;Allow executing file as program&#8221;<\/p>\n\n\n\n<figure class=\"sera-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1093\" height=\"672\" src=\"https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-10.png\" alt=\"\" class=\"sera-image-21299\" style=\"width:1026px;height:auto\" srcset=\"https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-10.png 1093w, https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-10-585x360.png 585w, https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-10-768x472.png 768w, https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-10-100x61.png 100w\" sizes=\"auto, (max-width: 1093px) 100vw, 1093px\" \/><\/figure>\n\n\n\n<h2 class=\"sera-block-heading\">Running With Java Runtime<\/h2>\n\n\n\n<p class=\"sera-block-paragraph\">Right one more time and Open\/Run the jar file with the <strong>OpenJDK Java 17 Runtime<\/strong><\/p>\n\n\n\n<figure class=\"sera-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1036\" height=\"636\" src=\"https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-11.png\" alt=\"\" class=\"sera-image-21302\" style=\"width:1023px;height:auto\" srcset=\"https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-11.png 1036w, https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-11-585x359.png 585w, https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-11-768x471.png 768w, https:\/\/portasftpserver.com\/sera-uploads\/2024\/03\/image-11-100x61.png 100w\" sizes=\"auto, (max-width: 1036px) 100vw, 1036px\" \/><\/figure>\n\n\n\n<p class=\"sera-block-paragraph\"><em>Note. <\/em>If you want to enable Fail2Ban firewall, please read this <a href=\"https:\/\/portasftpserver.com\/how-to-use-fail2ban-with-porta-sftp-server\/\" data-type=\"link\" data-id=\"https:\/\/portasftpserver.com\/how-to-use-fail2ban-with-porta-sftp-server\/\">blog post.<\/a><\/p>\n\n\n\n<p class=\"sera-block-paragraph\"><\/p>\n\n\n\n<p class=\"sera-block-paragraph\">Reference: <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-java-17-lts-on-ubuntu-20-04\/\">How to Install Java 17 LTS on Ubuntu 20.04 &#8211; RoseHosting<\/a><\/p>\n\n\n\n<p class=\"sera-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Required Files Currently, to run the Porta SFTP Server on Linux (Ubuntu 20.04+), you only need to have the following files. Note that the files from your Windows installation (if you have one) can be reused(Copied over) to Ubuntu directly except the ones with the &#8220;.exe&#8221; extension. Installing Java OpenJDK 17 Then verify using &#8220;java [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":21307,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[189,1],"tags":[286,287,285],"class_list":["post-21273","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-free-software","category-programming-software","tag-how-to-install-openjdk-on-linux","tag-how-to-install-porta-sftp-server-on-linux","tag-how-to-use-porta-sftp-server-on-linux"],"_links":{"self":[{"href":"https:\/\/portasftpserver.com\/sera-json\/wp\/v2\/posts\/21273","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=21273"}],"version-history":[{"count":26,"href":"https:\/\/portasftpserver.com\/sera-json\/wp\/v2\/posts\/21273\/revisions"}],"predecessor-version":[{"id":21393,"href":"https:\/\/portasftpserver.com\/sera-json\/wp\/v2\/posts\/21273\/revisions\/21393"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/portasftpserver.com\/sera-json\/wp\/v2\/media\/21307"}],"wp:attachment":[{"href":"https:\/\/portasftpserver.com\/sera-json\/wp\/v2\/media?parent=21273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/portasftpserver.com\/sera-json\/wp\/v2\/categories?post=21273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/portasftpserver.com\/sera-json\/wp\/v2\/tags?post=21273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}