X11DisplayOffset in sshd_config












1















I am very confused about the field X11DisplayOffset in sshd_config



Offset mean a position shift from the correct as lubuntu - Display offset. See image - Ask Ubuntu



However, when do ssh -X user@host to open 'firefox' on a remote desktop,

The Browser display correctly without offset.



What does X11DisplayOffset do?










share|improve this question



























    1















    I am very confused about the field X11DisplayOffset in sshd_config



    Offset mean a position shift from the correct as lubuntu - Display offset. See image - Ask Ubuntu



    However, when do ssh -X user@host to open 'firefox' on a remote desktop,

    The Browser display correctly without offset.



    What does X11DisplayOffset do?










    share|improve this question

























      1












      1








      1








      I am very confused about the field X11DisplayOffset in sshd_config



      Offset mean a position shift from the correct as lubuntu - Display offset. See image - Ask Ubuntu



      However, when do ssh -X user@host to open 'firefox' on a remote desktop,

      The Browser display correctly without offset.



      What does X11DisplayOffset do?










      share|improve this question














      I am very confused about the field X11DisplayOffset in sshd_config



      Offset mean a position shift from the correct as lubuntu - Display offset. See image - Ask Ubuntu



      However, when do ssh -X user@host to open 'firefox' on a remote desktop,

      The Browser display correctly without offset.



      What does X11DisplayOffset do?







      ssh






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 24 at 8:06









      AliceAlice

      453110




      453110






















          2 Answers
          2






          active

          oldest

          votes


















          2














          X11DisplayOffset does not refer to an offset within the geometry of the display - it relates to the identification of which display clients started over the SSH connection should use in order not to interfere with local displays. From man sshd_config:



           X11DisplayOffset
          Specifies the first display number available for sshd(8)'s X11
          forwarding. This prevents sshd from interfering with real X11
          servers. The default is 10.


          The architecture of X Windows allows for an X server to manage multiple displays. Typically on a standalone workstation with a single local user, you only have to deal with a single display - usually numbered 0 and often referred to as :0, for example in environment variable assignments like DISPLAY=:0. But on servers that may be running several X sessions (users remoting in via VNC for example, or separate X sessions on different virtual terminals) there may be multiple displays, labelled :1, :2, and so on.



          When X11 forwarding over SSH is added to the mix, that adds a requirement for additional unique display numbers (so that X clients tunneled over the SSH connection get directed to the correct remote display server). In order to avoid conflicts with local displays, an offset is added to the display numbering scheme so that the remote displays are numbered :10, :11, :12, ...






          share|improve this answer































            2














            The directive X11DisplayOffset is related to the $DISPLAY environment variable. From man sshd_config:



            X11DisplayOffset
            Specifies the first display number available for sshd(8)'s X11 forwarding.
            This prevents sshd from interfering with real X11 servers. The default is 10.


            So, with the default settings, when you are using the -X option in your ssh command to the $DISPLAY envvar will be assigned value as follow (note without -X or -Y the variable will be unset):



            $ echo $DISPLAY
            localhost:10.0


            where:




            • localhost (hostname) is the name of the computer where the X server runs. An omitted hostname means the localhost.


            • 10 (D) is a sequence number. It can be varied if there are multiple displays connected to one computer.


            • 0 (S) is the screen number. A display can actually have multiple screens.







            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%2f1112420%2fx11displayoffset-in-sshd-config%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









              2














              X11DisplayOffset does not refer to an offset within the geometry of the display - it relates to the identification of which display clients started over the SSH connection should use in order not to interfere with local displays. From man sshd_config:



               X11DisplayOffset
              Specifies the first display number available for sshd(8)'s X11
              forwarding. This prevents sshd from interfering with real X11
              servers. The default is 10.


              The architecture of X Windows allows for an X server to manage multiple displays. Typically on a standalone workstation with a single local user, you only have to deal with a single display - usually numbered 0 and often referred to as :0, for example in environment variable assignments like DISPLAY=:0. But on servers that may be running several X sessions (users remoting in via VNC for example, or separate X sessions on different virtual terminals) there may be multiple displays, labelled :1, :2, and so on.



              When X11 forwarding over SSH is added to the mix, that adds a requirement for additional unique display numbers (so that X clients tunneled over the SSH connection get directed to the correct remote display server). In order to avoid conflicts with local displays, an offset is added to the display numbering scheme so that the remote displays are numbered :10, :11, :12, ...






              share|improve this answer




























                2














                X11DisplayOffset does not refer to an offset within the geometry of the display - it relates to the identification of which display clients started over the SSH connection should use in order not to interfere with local displays. From man sshd_config:



                 X11DisplayOffset
                Specifies the first display number available for sshd(8)'s X11
                forwarding. This prevents sshd from interfering with real X11
                servers. The default is 10.


                The architecture of X Windows allows for an X server to manage multiple displays. Typically on a standalone workstation with a single local user, you only have to deal with a single display - usually numbered 0 and often referred to as :0, for example in environment variable assignments like DISPLAY=:0. But on servers that may be running several X sessions (users remoting in via VNC for example, or separate X sessions on different virtual terminals) there may be multiple displays, labelled :1, :2, and so on.



                When X11 forwarding over SSH is added to the mix, that adds a requirement for additional unique display numbers (so that X clients tunneled over the SSH connection get directed to the correct remote display server). In order to avoid conflicts with local displays, an offset is added to the display numbering scheme so that the remote displays are numbered :10, :11, :12, ...






                share|improve this answer


























                  2












                  2








                  2







                  X11DisplayOffset does not refer to an offset within the geometry of the display - it relates to the identification of which display clients started over the SSH connection should use in order not to interfere with local displays. From man sshd_config:



                   X11DisplayOffset
                  Specifies the first display number available for sshd(8)'s X11
                  forwarding. This prevents sshd from interfering with real X11
                  servers. The default is 10.


                  The architecture of X Windows allows for an X server to manage multiple displays. Typically on a standalone workstation with a single local user, you only have to deal with a single display - usually numbered 0 and often referred to as :0, for example in environment variable assignments like DISPLAY=:0. But on servers that may be running several X sessions (users remoting in via VNC for example, or separate X sessions on different virtual terminals) there may be multiple displays, labelled :1, :2, and so on.



                  When X11 forwarding over SSH is added to the mix, that adds a requirement for additional unique display numbers (so that X clients tunneled over the SSH connection get directed to the correct remote display server). In order to avoid conflicts with local displays, an offset is added to the display numbering scheme so that the remote displays are numbered :10, :11, :12, ...






                  share|improve this answer













                  X11DisplayOffset does not refer to an offset within the geometry of the display - it relates to the identification of which display clients started over the SSH connection should use in order not to interfere with local displays. From man sshd_config:



                   X11DisplayOffset
                  Specifies the first display number available for sshd(8)'s X11
                  forwarding. This prevents sshd from interfering with real X11
                  servers. The default is 10.


                  The architecture of X Windows allows for an X server to manage multiple displays. Typically on a standalone workstation with a single local user, you only have to deal with a single display - usually numbered 0 and often referred to as :0, for example in environment variable assignments like DISPLAY=:0. But on servers that may be running several X sessions (users remoting in via VNC for example, or separate X sessions on different virtual terminals) there may be multiple displays, labelled :1, :2, and so on.



                  When X11 forwarding over SSH is added to the mix, that adds a requirement for additional unique display numbers (so that X clients tunneled over the SSH connection get directed to the correct remote display server). In order to avoid conflicts with local displays, an offset is added to the display numbering scheme so that the remote displays are numbered :10, :11, :12, ...







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 24 at 12:38









                  steeldriversteeldriver

                  68.9k11113184




                  68.9k11113184

























                      2














                      The directive X11DisplayOffset is related to the $DISPLAY environment variable. From man sshd_config:



                      X11DisplayOffset
                      Specifies the first display number available for sshd(8)'s X11 forwarding.
                      This prevents sshd from interfering with real X11 servers. The default is 10.


                      So, with the default settings, when you are using the -X option in your ssh command to the $DISPLAY envvar will be assigned value as follow (note without -X or -Y the variable will be unset):



                      $ echo $DISPLAY
                      localhost:10.0


                      where:




                      • localhost (hostname) is the name of the computer where the X server runs. An omitted hostname means the localhost.


                      • 10 (D) is a sequence number. It can be varied if there are multiple displays connected to one computer.


                      • 0 (S) is the screen number. A display can actually have multiple screens.







                      share|improve this answer




























                        2














                        The directive X11DisplayOffset is related to the $DISPLAY environment variable. From man sshd_config:



                        X11DisplayOffset
                        Specifies the first display number available for sshd(8)'s X11 forwarding.
                        This prevents sshd from interfering with real X11 servers. The default is 10.


                        So, with the default settings, when you are using the -X option in your ssh command to the $DISPLAY envvar will be assigned value as follow (note without -X or -Y the variable will be unset):



                        $ echo $DISPLAY
                        localhost:10.0


                        where:




                        • localhost (hostname) is the name of the computer where the X server runs. An omitted hostname means the localhost.


                        • 10 (D) is a sequence number. It can be varied if there are multiple displays connected to one computer.


                        • 0 (S) is the screen number. A display can actually have multiple screens.







                        share|improve this answer


























                          2












                          2








                          2







                          The directive X11DisplayOffset is related to the $DISPLAY environment variable. From man sshd_config:



                          X11DisplayOffset
                          Specifies the first display number available for sshd(8)'s X11 forwarding.
                          This prevents sshd from interfering with real X11 servers. The default is 10.


                          So, with the default settings, when you are using the -X option in your ssh command to the $DISPLAY envvar will be assigned value as follow (note without -X or -Y the variable will be unset):



                          $ echo $DISPLAY
                          localhost:10.0


                          where:




                          • localhost (hostname) is the name of the computer where the X server runs. An omitted hostname means the localhost.


                          • 10 (D) is a sequence number. It can be varied if there are multiple displays connected to one computer.


                          • 0 (S) is the screen number. A display can actually have multiple screens.







                          share|improve this answer













                          The directive X11DisplayOffset is related to the $DISPLAY environment variable. From man sshd_config:



                          X11DisplayOffset
                          Specifies the first display number available for sshd(8)'s X11 forwarding.
                          This prevents sshd from interfering with real X11 servers. The default is 10.


                          So, with the default settings, when you are using the -X option in your ssh command to the $DISPLAY envvar will be assigned value as follow (note without -X or -Y the variable will be unset):



                          $ echo $DISPLAY
                          localhost:10.0


                          where:




                          • localhost (hostname) is the name of the computer where the X server runs. An omitted hostname means the localhost.


                          • 10 (D) is a sequence number. It can be varied if there are multiple displays connected to one computer.


                          • 0 (S) is the screen number. A display can actually have multiple screens.








                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Jan 24 at 12:38









                          pa4080pa4080

                          14.4k52670




                          14.4k52670






























                              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%2f1112420%2fx11displayoffset-in-sshd-config%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

                              How to change which sound is reproduced for terminal bell?

                              Can I use Tabulator js library in my java Spring + Thymeleaf project?

                              Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents