How do I access my ubuntu server from anywhere in the world?












0















How do I remotely access Ubuntu server 18.04.1



Right now I have Ubuntu server 18.04.1 set up, and I use puTTY to access it from my laptop. I want be able to access it though puTTY or ssh or something from anywhere in the world. Do I have to port forward my router to be able to access it remotely? Should I not be using puTTY to do this?



Thanks!










share|improve this question



























    0















    How do I remotely access Ubuntu server 18.04.1



    Right now I have Ubuntu server 18.04.1 set up, and I use puTTY to access it from my laptop. I want be able to access it though puTTY or ssh or something from anywhere in the world. Do I have to port forward my router to be able to access it remotely? Should I not be using puTTY to do this?



    Thanks!










    share|improve this question

























      0












      0








      0


      0






      How do I remotely access Ubuntu server 18.04.1



      Right now I have Ubuntu server 18.04.1 set up, and I use puTTY to access it from my laptop. I want be able to access it though puTTY or ssh or something from anywhere in the world. Do I have to port forward my router to be able to access it remotely? Should I not be using puTTY to do this?



      Thanks!










      share|improve this question














      How do I remotely access Ubuntu server 18.04.1



      Right now I have Ubuntu server 18.04.1 set up, and I use puTTY to access it from my laptop. I want be able to access it though puTTY or ssh or something from anywhere in the world. Do I have to port forward my router to be able to access it remotely? Should I not be using puTTY to do this?



      Thanks!







      ubuntu ssh putty






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 10 at 12:36









      Christian AzzamChristian Azzam

      14




      14






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Yes, there have a couple of solution to do this:





          1. port forward on your router




            • if you choose this way do not forward the standard ssh port on your router on the port 22 normally have a lot of attempt to access your server by use some vulnerability, if you forward external port 2222 -> 22 this should be avoided (but spend anyway some time for secure your server). Also you have to know your external IP address. If your ip is static you can also choose to create a domain name (for free DNS registration you can search freenom) or if is dynamic IP address use some service for DDNS to have domain name updated whit the IP address of your router.



          2. Use a VPN which allow you to reach your server like you are in local network, this do not require to perform a port forward is more secure but is more complex to be implemented







          share|improve this answer
























          • Thanks so much! I will try this right away!

            – Christian Azzam
            Jan 10 at 13:20











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          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%2fsuperuser.com%2fquestions%2f1392733%2fhow-do-i-access-my-ubuntu-server-from-anywhere-in-the-world%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









          0














          Yes, there have a couple of solution to do this:





          1. port forward on your router




            • if you choose this way do not forward the standard ssh port on your router on the port 22 normally have a lot of attempt to access your server by use some vulnerability, if you forward external port 2222 -> 22 this should be avoided (but spend anyway some time for secure your server). Also you have to know your external IP address. If your ip is static you can also choose to create a domain name (for free DNS registration you can search freenom) or if is dynamic IP address use some service for DDNS to have domain name updated whit the IP address of your router.



          2. Use a VPN which allow you to reach your server like you are in local network, this do not require to perform a port forward is more secure but is more complex to be implemented







          share|improve this answer
























          • Thanks so much! I will try this right away!

            – Christian Azzam
            Jan 10 at 13:20
















          0














          Yes, there have a couple of solution to do this:





          1. port forward on your router




            • if you choose this way do not forward the standard ssh port on your router on the port 22 normally have a lot of attempt to access your server by use some vulnerability, if you forward external port 2222 -> 22 this should be avoided (but spend anyway some time for secure your server). Also you have to know your external IP address. If your ip is static you can also choose to create a domain name (for free DNS registration you can search freenom) or if is dynamic IP address use some service for DDNS to have domain name updated whit the IP address of your router.



          2. Use a VPN which allow you to reach your server like you are in local network, this do not require to perform a port forward is more secure but is more complex to be implemented







          share|improve this answer
























          • Thanks so much! I will try this right away!

            – Christian Azzam
            Jan 10 at 13:20














          0












          0








          0







          Yes, there have a couple of solution to do this:





          1. port forward on your router




            • if you choose this way do not forward the standard ssh port on your router on the port 22 normally have a lot of attempt to access your server by use some vulnerability, if you forward external port 2222 -> 22 this should be avoided (but spend anyway some time for secure your server). Also you have to know your external IP address. If your ip is static you can also choose to create a domain name (for free DNS registration you can search freenom) or if is dynamic IP address use some service for DDNS to have domain name updated whit the IP address of your router.



          2. Use a VPN which allow you to reach your server like you are in local network, this do not require to perform a port forward is more secure but is more complex to be implemented







          share|improve this answer













          Yes, there have a couple of solution to do this:





          1. port forward on your router




            • if you choose this way do not forward the standard ssh port on your router on the port 22 normally have a lot of attempt to access your server by use some vulnerability, if you forward external port 2222 -> 22 this should be avoided (but spend anyway some time for secure your server). Also you have to know your external IP address. If your ip is static you can also choose to create a domain name (for free DNS registration you can search freenom) or if is dynamic IP address use some service for DDNS to have domain name updated whit the IP address of your router.



          2. Use a VPN which allow you to reach your server like you are in local network, this do not require to perform a port forward is more secure but is more complex to be implemented








          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 10 at 12:58









          AtomiX84AtomiX84

          4779




          4779













          • Thanks so much! I will try this right away!

            – Christian Azzam
            Jan 10 at 13:20



















          • Thanks so much! I will try this right away!

            – Christian Azzam
            Jan 10 at 13:20

















          Thanks so much! I will try this right away!

          – Christian Azzam
          Jan 10 at 13:20





          Thanks so much! I will try this right away!

          – Christian Azzam
          Jan 10 at 13:20


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • 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%2fsuperuser.com%2fquestions%2f1392733%2fhow-do-i-access-my-ubuntu-server-from-anywhere-in-the-world%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

          Plaza Victoria

          Puebla de Zaragoza

          Musa