Why does a VNC Server needs Tunnel forwarding in local computer











up vote
0
down vote

favorite












I followed this tutorial to set up the VNC server in my remote machine : https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-16-04



I am able to successfully deploy the VNC Server and take the remote out of it.



I see a point in this document,




we need to create an SSH connection on your local computer that securely forwards to the localhost connection for VNC. You can do this via the terminal on Linux or OS X with following command. Remember to replace user and server_ip_address with the sudo non-root username and IP address of your server.




ssh -L 5901:127.0.0.1:5901 -N -f -l username server_ip_address


I have two question here,



1) why do we need to create a secure connection here in connecting from the remote machine where VNC server is running to my local machine?

2) I need a way to connect using the remote machine username, password, IP address, and port, I need to avoid the step one so that any user can simply access the remote VM using just IP Address, Port, Username and password.



Any help is appreciated, please help me for this.



Thanks,
Harry










share|improve this question


























    up vote
    0
    down vote

    favorite












    I followed this tutorial to set up the VNC server in my remote machine : https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-16-04



    I am able to successfully deploy the VNC Server and take the remote out of it.



    I see a point in this document,




    we need to create an SSH connection on your local computer that securely forwards to the localhost connection for VNC. You can do this via the terminal on Linux or OS X with following command. Remember to replace user and server_ip_address with the sudo non-root username and IP address of your server.




    ssh -L 5901:127.0.0.1:5901 -N -f -l username server_ip_address


    I have two question here,



    1) why do we need to create a secure connection here in connecting from the remote machine where VNC server is running to my local machine?

    2) I need a way to connect using the remote machine username, password, IP address, and port, I need to avoid the step one so that any user can simply access the remote VM using just IP Address, Port, Username and password.



    Any help is appreciated, please help me for this.



    Thanks,
    Harry










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I followed this tutorial to set up the VNC server in my remote machine : https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-16-04



      I am able to successfully deploy the VNC Server and take the remote out of it.



      I see a point in this document,




      we need to create an SSH connection on your local computer that securely forwards to the localhost connection for VNC. You can do this via the terminal on Linux or OS X with following command. Remember to replace user and server_ip_address with the sudo non-root username and IP address of your server.




      ssh -L 5901:127.0.0.1:5901 -N -f -l username server_ip_address


      I have two question here,



      1) why do we need to create a secure connection here in connecting from the remote machine where VNC server is running to my local machine?

      2) I need a way to connect using the remote machine username, password, IP address, and port, I need to avoid the step one so that any user can simply access the remote VM using just IP Address, Port, Username and password.



      Any help is appreciated, please help me for this.



      Thanks,
      Harry










      share|improve this question













      I followed this tutorial to set up the VNC server in my remote machine : https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-16-04



      I am able to successfully deploy the VNC Server and take the remote out of it.



      I see a point in this document,




      we need to create an SSH connection on your local computer that securely forwards to the localhost connection for VNC. You can do this via the terminal on Linux or OS X with following command. Remember to replace user and server_ip_address with the sudo non-root username and IP address of your server.




      ssh -L 5901:127.0.0.1:5901 -N -f -l username server_ip_address


      I have two question here,



      1) why do we need to create a secure connection here in connecting from the remote machine where VNC server is running to my local machine?

      2) I need a way to connect using the remote machine username, password, IP address, and port, I need to avoid the step one so that any user can simply access the remote VM using just IP Address, Port, Username and password.



      Any help is appreciated, please help me for this.



      Thanks,
      Harry







      networking server ssh remote-desktop vnc






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 2 days ago









      Harry

      1011




      1011



























          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          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',
          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%2faskubuntu.com%2fquestions%2f1093924%2fwhy-does-a-vnc-server-needs-tunnel-forwarding-in-local-computer%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1093924%2fwhy-does-a-vnc-server-needs-tunnel-forwarding-in-local-computer%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

          flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

          Mangá

          Eduardo VII do Reino Unido