How to connect from a Linux machine to an Ubuntu machine on internal network only?












0















I want to be able to access one of my Ubuntu computers from a Linux computer, from within my Home Network, but for it to be impossible to do so from outside.



What would be the best way to go about this?



Thanks in advance!










share|improve this question
















bumped to the homepage by Community 1 hour ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    0















    I want to be able to access one of my Ubuntu computers from a Linux computer, from within my Home Network, but for it to be impossible to do so from outside.



    What would be the best way to go about this?



    Thanks in advance!










    share|improve this question
















    bumped to the homepage by Community 1 hour ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      0












      0








      0


      0






      I want to be able to access one of my Ubuntu computers from a Linux computer, from within my Home Network, but for it to be impossible to do so from outside.



      What would be the best way to go about this?



      Thanks in advance!










      share|improve this question
















      I want to be able to access one of my Ubuntu computers from a Linux computer, from within my Home Network, but for it to be impossible to do so from outside.



      What would be the best way to go about this?



      Thanks in advance!







      remote-desktop remote-access






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 13 '17 at 2:56







      Tyler

















      asked May 13 '17 at 1:43









      TylerTyler

      112




      112





      bumped to the homepage by Community 1 hour ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 1 hour ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          2 Answers
          2






          active

          oldest

          votes


















          0














          Secure Shell is one choice that is fairly easy but it only allows for a Command Line Interface (CLI). SSH can be accessed from the WAN by port forwarding in your router settings.



          Remote Desktop is easy and available natively on Ubuntu machines. The instructions to set it up can be found at the following page.
          http://www.makeuseof.com/tag/ubuntu-remote-desktop-builtin-vnc-compatible-dead-easy/



          You need to go into Desktop Sharing Preferences and allow others to view your Desktop and allow other users to control your desktop. You can set a password under security if you so desire.



          After you find the IP address you can use Remmina Remote Desktop client to access it from that machine. You can use ifconfig to determine the IP address. When you open Remmina it should look similar to the picture below. However it will auto-populate with RDP, you will need to change this to VNC.enter image description here



          Remote Desktop can also be accessed from WAN by forwarding the port, but if this isn't setup you won't have access. One thing to check is to make sure that you are using VNC not RDP as your protocol to connect.



          On the machine you want to connect from you will need to make sure that Remmina is installed and properly.
          In Ubuntu/Debian:



          sudo apt-get install remmina remmina-plugin-*


          In Centos/RHEL:



          yum install remmina remmina-plugin-*


          In Fedora:



          sudo dnf copr enable hubbitus/remmina-next
          sudo dnf upgrade --refresh 'remmina*' 'freerdp*'





          share|improve this answer


























          • Will this prevent connections from outside the network, or will that still be possible?

            – Tyler
            May 13 '17 at 1:56











          • With SSH you would have to go into your router settings and allow connection from outside. I don't believe that Reminna allows any access from outside the LAN. Scratch that, it can as well but like SSH it has to be set up in your router settings.

            – Robby1212
            May 13 '17 at 1:57













          • When using Remmina, it keeps saying Unable to Connect, even though I think I am doing everything correct. I have all the settings like in the link you sent, but it won't work.

            – Tyler
            May 13 '17 at 2:06











          • @Tyler try gsettings set org.gnome.Vino require-encryption false on the machine with Remote Desktop turned on, then connect from the other machine

            – nullmeta
            May 13 '17 at 2:16











          • @nullmeta That didn't change anything.

            – Tyler
            May 13 '17 at 2:44



















          -1














          If you are familiar with terminal, you can use ssh. Simply install on the machine you want to control package openssh-server.



          On your local machine open terminal and type ssh login@internal_ip_of_your_remote_machine. Some networks even work with hostname (login@hostname.local).



          If you want to skip logging in all the time, you can create and copy your public authentification key:



          ssh-keygen - if you have already not generated your ssh key (you can confirm everything)



          ssh-copy-id login@remote_machine and enter remote password.
          From now on you can login from your computer without password query.






          share|improve this answer























            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',
            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%2faskubuntu.com%2fquestions%2f914639%2fhow-to-connect-from-a-linux-machine-to-an-ubuntu-machine-on-internal-network-onl%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Secure Shell is one choice that is fairly easy but it only allows for a Command Line Interface (CLI). SSH can be accessed from the WAN by port forwarding in your router settings.



            Remote Desktop is easy and available natively on Ubuntu machines. The instructions to set it up can be found at the following page.
            http://www.makeuseof.com/tag/ubuntu-remote-desktop-builtin-vnc-compatible-dead-easy/



            You need to go into Desktop Sharing Preferences and allow others to view your Desktop and allow other users to control your desktop. You can set a password under security if you so desire.



            After you find the IP address you can use Remmina Remote Desktop client to access it from that machine. You can use ifconfig to determine the IP address. When you open Remmina it should look similar to the picture below. However it will auto-populate with RDP, you will need to change this to VNC.enter image description here



            Remote Desktop can also be accessed from WAN by forwarding the port, but if this isn't setup you won't have access. One thing to check is to make sure that you are using VNC not RDP as your protocol to connect.



            On the machine you want to connect from you will need to make sure that Remmina is installed and properly.
            In Ubuntu/Debian:



            sudo apt-get install remmina remmina-plugin-*


            In Centos/RHEL:



            yum install remmina remmina-plugin-*


            In Fedora:



            sudo dnf copr enable hubbitus/remmina-next
            sudo dnf upgrade --refresh 'remmina*' 'freerdp*'





            share|improve this answer


























            • Will this prevent connections from outside the network, or will that still be possible?

              – Tyler
              May 13 '17 at 1:56











            • With SSH you would have to go into your router settings and allow connection from outside. I don't believe that Reminna allows any access from outside the LAN. Scratch that, it can as well but like SSH it has to be set up in your router settings.

              – Robby1212
              May 13 '17 at 1:57













            • When using Remmina, it keeps saying Unable to Connect, even though I think I am doing everything correct. I have all the settings like in the link you sent, but it won't work.

              – Tyler
              May 13 '17 at 2:06











            • @Tyler try gsettings set org.gnome.Vino require-encryption false on the machine with Remote Desktop turned on, then connect from the other machine

              – nullmeta
              May 13 '17 at 2:16











            • @nullmeta That didn't change anything.

              – Tyler
              May 13 '17 at 2:44
















            0














            Secure Shell is one choice that is fairly easy but it only allows for a Command Line Interface (CLI). SSH can be accessed from the WAN by port forwarding in your router settings.



            Remote Desktop is easy and available natively on Ubuntu machines. The instructions to set it up can be found at the following page.
            http://www.makeuseof.com/tag/ubuntu-remote-desktop-builtin-vnc-compatible-dead-easy/



            You need to go into Desktop Sharing Preferences and allow others to view your Desktop and allow other users to control your desktop. You can set a password under security if you so desire.



            After you find the IP address you can use Remmina Remote Desktop client to access it from that machine. You can use ifconfig to determine the IP address. When you open Remmina it should look similar to the picture below. However it will auto-populate with RDP, you will need to change this to VNC.enter image description here



            Remote Desktop can also be accessed from WAN by forwarding the port, but if this isn't setup you won't have access. One thing to check is to make sure that you are using VNC not RDP as your protocol to connect.



            On the machine you want to connect from you will need to make sure that Remmina is installed and properly.
            In Ubuntu/Debian:



            sudo apt-get install remmina remmina-plugin-*


            In Centos/RHEL:



            yum install remmina remmina-plugin-*


            In Fedora:



            sudo dnf copr enable hubbitus/remmina-next
            sudo dnf upgrade --refresh 'remmina*' 'freerdp*'





            share|improve this answer


























            • Will this prevent connections from outside the network, or will that still be possible?

              – Tyler
              May 13 '17 at 1:56











            • With SSH you would have to go into your router settings and allow connection from outside. I don't believe that Reminna allows any access from outside the LAN. Scratch that, it can as well but like SSH it has to be set up in your router settings.

              – Robby1212
              May 13 '17 at 1:57













            • When using Remmina, it keeps saying Unable to Connect, even though I think I am doing everything correct. I have all the settings like in the link you sent, but it won't work.

              – Tyler
              May 13 '17 at 2:06











            • @Tyler try gsettings set org.gnome.Vino require-encryption false on the machine with Remote Desktop turned on, then connect from the other machine

              – nullmeta
              May 13 '17 at 2:16











            • @nullmeta That didn't change anything.

              – Tyler
              May 13 '17 at 2:44














            0












            0








            0







            Secure Shell is one choice that is fairly easy but it only allows for a Command Line Interface (CLI). SSH can be accessed from the WAN by port forwarding in your router settings.



            Remote Desktop is easy and available natively on Ubuntu machines. The instructions to set it up can be found at the following page.
            http://www.makeuseof.com/tag/ubuntu-remote-desktop-builtin-vnc-compatible-dead-easy/



            You need to go into Desktop Sharing Preferences and allow others to view your Desktop and allow other users to control your desktop. You can set a password under security if you so desire.



            After you find the IP address you can use Remmina Remote Desktop client to access it from that machine. You can use ifconfig to determine the IP address. When you open Remmina it should look similar to the picture below. However it will auto-populate with RDP, you will need to change this to VNC.enter image description here



            Remote Desktop can also be accessed from WAN by forwarding the port, but if this isn't setup you won't have access. One thing to check is to make sure that you are using VNC not RDP as your protocol to connect.



            On the machine you want to connect from you will need to make sure that Remmina is installed and properly.
            In Ubuntu/Debian:



            sudo apt-get install remmina remmina-plugin-*


            In Centos/RHEL:



            yum install remmina remmina-plugin-*


            In Fedora:



            sudo dnf copr enable hubbitus/remmina-next
            sudo dnf upgrade --refresh 'remmina*' 'freerdp*'





            share|improve this answer















            Secure Shell is one choice that is fairly easy but it only allows for a Command Line Interface (CLI). SSH can be accessed from the WAN by port forwarding in your router settings.



            Remote Desktop is easy and available natively on Ubuntu machines. The instructions to set it up can be found at the following page.
            http://www.makeuseof.com/tag/ubuntu-remote-desktop-builtin-vnc-compatible-dead-easy/



            You need to go into Desktop Sharing Preferences and allow others to view your Desktop and allow other users to control your desktop. You can set a password under security if you so desire.



            After you find the IP address you can use Remmina Remote Desktop client to access it from that machine. You can use ifconfig to determine the IP address. When you open Remmina it should look similar to the picture below. However it will auto-populate with RDP, you will need to change this to VNC.enter image description here



            Remote Desktop can also be accessed from WAN by forwarding the port, but if this isn't setup you won't have access. One thing to check is to make sure that you are using VNC not RDP as your protocol to connect.



            On the machine you want to connect from you will need to make sure that Remmina is installed and properly.
            In Ubuntu/Debian:



            sudo apt-get install remmina remmina-plugin-*


            In Centos/RHEL:



            yum install remmina remmina-plugin-*


            In Fedora:



            sudo dnf copr enable hubbitus/remmina-next
            sudo dnf upgrade --refresh 'remmina*' 'freerdp*'






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited May 13 '17 at 15:55

























            answered May 13 '17 at 1:54









            Robby1212Robby1212

            336317




            336317













            • Will this prevent connections from outside the network, or will that still be possible?

              – Tyler
              May 13 '17 at 1:56











            • With SSH you would have to go into your router settings and allow connection from outside. I don't believe that Reminna allows any access from outside the LAN. Scratch that, it can as well but like SSH it has to be set up in your router settings.

              – Robby1212
              May 13 '17 at 1:57













            • When using Remmina, it keeps saying Unable to Connect, even though I think I am doing everything correct. I have all the settings like in the link you sent, but it won't work.

              – Tyler
              May 13 '17 at 2:06











            • @Tyler try gsettings set org.gnome.Vino require-encryption false on the machine with Remote Desktop turned on, then connect from the other machine

              – nullmeta
              May 13 '17 at 2:16











            • @nullmeta That didn't change anything.

              – Tyler
              May 13 '17 at 2:44



















            • Will this prevent connections from outside the network, or will that still be possible?

              – Tyler
              May 13 '17 at 1:56











            • With SSH you would have to go into your router settings and allow connection from outside. I don't believe that Reminna allows any access from outside the LAN. Scratch that, it can as well but like SSH it has to be set up in your router settings.

              – Robby1212
              May 13 '17 at 1:57













            • When using Remmina, it keeps saying Unable to Connect, even though I think I am doing everything correct. I have all the settings like in the link you sent, but it won't work.

              – Tyler
              May 13 '17 at 2:06











            • @Tyler try gsettings set org.gnome.Vino require-encryption false on the machine with Remote Desktop turned on, then connect from the other machine

              – nullmeta
              May 13 '17 at 2:16











            • @nullmeta That didn't change anything.

              – Tyler
              May 13 '17 at 2:44

















            Will this prevent connections from outside the network, or will that still be possible?

            – Tyler
            May 13 '17 at 1:56





            Will this prevent connections from outside the network, or will that still be possible?

            – Tyler
            May 13 '17 at 1:56













            With SSH you would have to go into your router settings and allow connection from outside. I don't believe that Reminna allows any access from outside the LAN. Scratch that, it can as well but like SSH it has to be set up in your router settings.

            – Robby1212
            May 13 '17 at 1:57







            With SSH you would have to go into your router settings and allow connection from outside. I don't believe that Reminna allows any access from outside the LAN. Scratch that, it can as well but like SSH it has to be set up in your router settings.

            – Robby1212
            May 13 '17 at 1:57















            When using Remmina, it keeps saying Unable to Connect, even though I think I am doing everything correct. I have all the settings like in the link you sent, but it won't work.

            – Tyler
            May 13 '17 at 2:06





            When using Remmina, it keeps saying Unable to Connect, even though I think I am doing everything correct. I have all the settings like in the link you sent, but it won't work.

            – Tyler
            May 13 '17 at 2:06













            @Tyler try gsettings set org.gnome.Vino require-encryption false on the machine with Remote Desktop turned on, then connect from the other machine

            – nullmeta
            May 13 '17 at 2:16





            @Tyler try gsettings set org.gnome.Vino require-encryption false on the machine with Remote Desktop turned on, then connect from the other machine

            – nullmeta
            May 13 '17 at 2:16













            @nullmeta That didn't change anything.

            – Tyler
            May 13 '17 at 2:44





            @nullmeta That didn't change anything.

            – Tyler
            May 13 '17 at 2:44













            -1














            If you are familiar with terminal, you can use ssh. Simply install on the machine you want to control package openssh-server.



            On your local machine open terminal and type ssh login@internal_ip_of_your_remote_machine. Some networks even work with hostname (login@hostname.local).



            If you want to skip logging in all the time, you can create and copy your public authentification key:



            ssh-keygen - if you have already not generated your ssh key (you can confirm everything)



            ssh-copy-id login@remote_machine and enter remote password.
            From now on you can login from your computer without password query.






            share|improve this answer




























              -1














              If you are familiar with terminal, you can use ssh. Simply install on the machine you want to control package openssh-server.



              On your local machine open terminal and type ssh login@internal_ip_of_your_remote_machine. Some networks even work with hostname (login@hostname.local).



              If you want to skip logging in all the time, you can create and copy your public authentification key:



              ssh-keygen - if you have already not generated your ssh key (you can confirm everything)



              ssh-copy-id login@remote_machine and enter remote password.
              From now on you can login from your computer without password query.






              share|improve this answer


























                -1












                -1








                -1







                If you are familiar with terminal, you can use ssh. Simply install on the machine you want to control package openssh-server.



                On your local machine open terminal and type ssh login@internal_ip_of_your_remote_machine. Some networks even work with hostname (login@hostname.local).



                If you want to skip logging in all the time, you can create and copy your public authentification key:



                ssh-keygen - if you have already not generated your ssh key (you can confirm everything)



                ssh-copy-id login@remote_machine and enter remote password.
                From now on you can login from your computer without password query.






                share|improve this answer













                If you are familiar with terminal, you can use ssh. Simply install on the machine you want to control package openssh-server.



                On your local machine open terminal and type ssh login@internal_ip_of_your_remote_machine. Some networks even work with hostname (login@hostname.local).



                If you want to skip logging in all the time, you can create and copy your public authentification key:



                ssh-keygen - if you have already not generated your ssh key (you can confirm everything)



                ssh-copy-id login@remote_machine and enter remote password.
                From now on you can login from your computer without password query.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 13 '17 at 15:45









                Michal PolovkaMichal Polovka

                1,1651819




                1,1651819






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • 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%2faskubuntu.com%2fquestions%2f914639%2fhow-to-connect-from-a-linux-machine-to-an-ubuntu-machine-on-internal-network-onl%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

                    GameSpot

                    日野市

                    Tu-95轟炸機