Setup ufw and HTTP using certbot and I can no longer use SFTP Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Nginx serves .php files as downloads, instead of executing themApache 2 - AH02311: Fatal error initialising mod_sslUnicorn service not startingNginx website shows “ERR_TOO_MANY_REDIRECTS”Digital Ocean: One Click Django Won't Route My Domain, Bad Gatewayufw firewall not working on ubuntu in digitaloceanTwo node.js domains with SSL on same nginx server - duplicate listen options for 443NGINX not opening ports for Parse Server and Socket.ioHow to secure Nginx with python-certbot on Ubuntu 16.04I have error secure apache on Digital Ocean?

Weaponising the Grasp-at-a-Distance spell

Should man-made satellites feature an intelligent inverted "cow catcher"?

Can two people see the same photon?

Is it OK to use the testing sample to compare algorithms?

Does a random sequence of vectors span a Hilbert space?

Is the time—manner—place ordering of adverbials an oversimplification?

Where and when has Thucydides been studied?

Why do C and C++ allow the expression (int) + 4*5;

A question about the degree of an extension field

2018 MacBook Pro won't let me install macOS High Sierra 10.13 from USB installer

Inverse square law not accurate for non-point masses?

.bashrc alias for a command with fixed second parameter

Found this skink in my tomato plant bucket. Is he trapped? Or could he leave if he wanted?

Centre cell vertically in tabularx

Was the pager message from Nick Fury to Captain Marvel unnecessary?

Is a copyright notice with a non-existent name be invalid?

How much damage would a cupful of neutron star matter do to the Earth?

How do Java 8 default methods hеlp with lambdas?

How do you write "wild blueberries flavored"?

Why did Bronn offer to be Tyrion Lannister's champion in trial by combat?

How to ask rejected full-time candidates to apply to teach individual courses?

Are there any irrational/transcendental numbers for which the distribution of decimal digits is not uniform?

Why not use the yoke to control yaw, as well as pitch and roll?

An isoperimetric-type inequality inside a cube



Setup ufw and HTTP using certbot and I can no longer use SFTP



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!Nginx serves .php files as downloads, instead of executing themApache 2 - AH02311: Fatal error initialising mod_sslUnicorn service not startingNginx website shows “ERR_TOO_MANY_REDIRECTS”Digital Ocean: One Click Django Won't Route My Domain, Bad Gatewayufw firewall not working on ubuntu in digitaloceanTwo node.js domains with SSL on same nginx server - duplicate listen options for 443NGINX not opening ports for Parse Server and Socket.ioHow to secure Nginx with python-certbot on Ubuntu 16.04I have error secure apache on Digital Ocean?



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








-1















I setup UFW and HTTPS on my digitalocean droplet and I can no longer SFTP into my box. Are there extra steps to enable SFTP into the box?



https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-18-04#step-4-%E2%80%93-managing-the-nginx-process



https://www.digitalocean.com/community/tutorials/how-to-set-up-let-s-encrypt-with-nginx-server-blocks-on-ubuntu-16-04#prerequisites



Error: Connection timed out after 20 seconds of inactivity
Error: Could not connect to server









share|improve this question




























    -1















    I setup UFW and HTTPS on my digitalocean droplet and I can no longer SFTP into my box. Are there extra steps to enable SFTP into the box?



    https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-18-04#step-4-%E2%80%93-managing-the-nginx-process



    https://www.digitalocean.com/community/tutorials/how-to-set-up-let-s-encrypt-with-nginx-server-blocks-on-ubuntu-16-04#prerequisites



    Error: Connection timed out after 20 seconds of inactivity
    Error: Could not connect to server









    share|improve this question
























      -1












      -1








      -1


      1






      I setup UFW and HTTPS on my digitalocean droplet and I can no longer SFTP into my box. Are there extra steps to enable SFTP into the box?



      https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-18-04#step-4-%E2%80%93-managing-the-nginx-process



      https://www.digitalocean.com/community/tutorials/how-to-set-up-let-s-encrypt-with-nginx-server-blocks-on-ubuntu-16-04#prerequisites



      Error: Connection timed out after 20 seconds of inactivity
      Error: Could not connect to server









      share|improve this question














      I setup UFW and HTTPS on my digitalocean droplet and I can no longer SFTP into my box. Are there extra steps to enable SFTP into the box?



      https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-18-04#step-4-%E2%80%93-managing-the-nginx-process



      https://www.digitalocean.com/community/tutorials/how-to-set-up-let-s-encrypt-with-nginx-server-blocks-on-ubuntu-16-04#prerequisites



      Error: Connection timed out after 20 seconds of inactivity
      Error: Could not connect to server






      nginx https sftp digital-ocean ufw






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 9 at 0:42









      corycorycorycorycorycory

      307516




      307516






















          1 Answer
          1






          active

          oldest

          votes


















          1














          Seeing that SFTP runs on the SSH port, you could be in trouble. If you can not access your server in any way, then it's probably for the best to reset it since there will be no real other way to gain access to your server again.



          Anyhow, if you can connect to your server and update the firewall (execute with sudo if necessary), execute the following 2 commands if you have a static IP:



          ufw allow from [YOUR IP] to any port 22 
          ufw reload


          Otherwise, it is recommended to use a different port for SSH (http://www.linuxlookup.com/howto/change_default_ssh_port). The commands to execute here would be the following:



          ufw allow [CUSTOM SSH PORT]
          ufw reload


          Also, if you are not yet using a key for your SSH login, take a look at the follwing page: https://www.ssh.com/ssh/key/ . Since it will greatly improve the overall security of your server.






          share|improve this answer























          • Thanks, it was a firewall issue. I will look into setting up the ssh key as well.

            – corycorycory
            Mar 10 at 17:07











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55072871%2fsetup-ufw-and-http-using-certbot-and-i-can-no-longer-use-sftp%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          Seeing that SFTP runs on the SSH port, you could be in trouble. If you can not access your server in any way, then it's probably for the best to reset it since there will be no real other way to gain access to your server again.



          Anyhow, if you can connect to your server and update the firewall (execute with sudo if necessary), execute the following 2 commands if you have a static IP:



          ufw allow from [YOUR IP] to any port 22 
          ufw reload


          Otherwise, it is recommended to use a different port for SSH (http://www.linuxlookup.com/howto/change_default_ssh_port). The commands to execute here would be the following:



          ufw allow [CUSTOM SSH PORT]
          ufw reload


          Also, if you are not yet using a key for your SSH login, take a look at the follwing page: https://www.ssh.com/ssh/key/ . Since it will greatly improve the overall security of your server.






          share|improve this answer























          • Thanks, it was a firewall issue. I will look into setting up the ssh key as well.

            – corycorycory
            Mar 10 at 17:07















          1














          Seeing that SFTP runs on the SSH port, you could be in trouble. If you can not access your server in any way, then it's probably for the best to reset it since there will be no real other way to gain access to your server again.



          Anyhow, if you can connect to your server and update the firewall (execute with sudo if necessary), execute the following 2 commands if you have a static IP:



          ufw allow from [YOUR IP] to any port 22 
          ufw reload


          Otherwise, it is recommended to use a different port for SSH (http://www.linuxlookup.com/howto/change_default_ssh_port). The commands to execute here would be the following:



          ufw allow [CUSTOM SSH PORT]
          ufw reload


          Also, if you are not yet using a key for your SSH login, take a look at the follwing page: https://www.ssh.com/ssh/key/ . Since it will greatly improve the overall security of your server.






          share|improve this answer























          • Thanks, it was a firewall issue. I will look into setting up the ssh key as well.

            – corycorycory
            Mar 10 at 17:07













          1












          1








          1







          Seeing that SFTP runs on the SSH port, you could be in trouble. If you can not access your server in any way, then it's probably for the best to reset it since there will be no real other way to gain access to your server again.



          Anyhow, if you can connect to your server and update the firewall (execute with sudo if necessary), execute the following 2 commands if you have a static IP:



          ufw allow from [YOUR IP] to any port 22 
          ufw reload


          Otherwise, it is recommended to use a different port for SSH (http://www.linuxlookup.com/howto/change_default_ssh_port). The commands to execute here would be the following:



          ufw allow [CUSTOM SSH PORT]
          ufw reload


          Also, if you are not yet using a key for your SSH login, take a look at the follwing page: https://www.ssh.com/ssh/key/ . Since it will greatly improve the overall security of your server.






          share|improve this answer













          Seeing that SFTP runs on the SSH port, you could be in trouble. If you can not access your server in any way, then it's probably for the best to reset it since there will be no real other way to gain access to your server again.



          Anyhow, if you can connect to your server and update the firewall (execute with sudo if necessary), execute the following 2 commands if you have a static IP:



          ufw allow from [YOUR IP] to any port 22 
          ufw reload


          Otherwise, it is recommended to use a different port for SSH (http://www.linuxlookup.com/howto/change_default_ssh_port). The commands to execute here would be the following:



          ufw allow [CUSTOM SSH PORT]
          ufw reload


          Also, if you are not yet using a key for your SSH login, take a look at the follwing page: https://www.ssh.com/ssh/key/ . Since it will greatly improve the overall security of your server.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 9 at 11:37









          Harm SmitsHarm Smits

          1168




          1168












          • Thanks, it was a firewall issue. I will look into setting up the ssh key as well.

            – corycorycory
            Mar 10 at 17:07

















          • Thanks, it was a firewall issue. I will look into setting up the ssh key as well.

            – corycorycory
            Mar 10 at 17:07
















          Thanks, it was a firewall issue. I will look into setting up the ssh key as well.

          – corycorycory
          Mar 10 at 17:07





          Thanks, it was a firewall issue. I will look into setting up the ssh key as well.

          – corycorycory
          Mar 10 at 17:07



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55072871%2fsetup-ufw-and-http-using-certbot-and-i-can-no-longer-use-sftp%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          AWS Lex not identifying response if by a variable The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceEnforcing custom enumeration in AWS LEX for slot valuesHow to give response based on user response in Amazon Lex?Intercepting AWS Lambda Response to a AWS Lex QueryLex chat bot error: Reached second execution of fulfillment lambda on the same utteranceamazon lex showing invalid responseLambda response send back to Lex slot?Response card in Amazon lexAmazon Lex - Lambda response return HTML to botHow can I solve 424 (Failed Dependency) (python) obtained from Amazon lex?

          Алба-Юлія

          Захаров Федір Захарович