X11 forwarding seems not working?












0















i am using ubuntu 16.04. The Server is also running ubuntu 16.04.



my /etc/ssh/ssh_config looks so:



Host *
# ForwardAgent no
ForwardX11 yes
ForwardX11Trusted yes
# RhostsRSAAuthentication no
# RSAAuthentication yes
# PasswordAuthentication yes
# HostbasedAuthentication no
# GSSAPIAuthentication no
# GSSAPIDelegateCredentials no
# GSSAPIKeyExchange no
# GSSAPITrustDNS no
# BatchMode no
# CheckHostIP yes
# AddressFamily any
# ConnectTimeout 0
# StrictHostKeyChecking ask
# IdentityFile ~/.ssh/identity
# IdentityFile ~/.ssh/id_rsa
# IdentityFile ~/.ssh/id_dsa
# IdentityFile ~/.ssh/id_ecdsa
# IdentityFile ~/.ssh/id_ed25519
# Port 22
# Protocol 2
# Cipher 3des
# Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
# MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160
# EscapeChar ~
# Tunnel no
# TunnelDevice any:any
# PermitLocalCommand no
# VisualHostKey no
# ProxyCommand ssh -q -W %h:%p gateway.example.com
# RekeyLimit 1G 1h
SendEnv LANG LC_*
HashKnownHosts yes
GSSAPIAuthentication yes
GSSAPIDelegateCredentials no


server sshd_config:



X11Forwarding yes
X11DisplayOffset 10


When i connect to a ssh Server :



ssh -vvv -Y server


ssh connects to the server.
When i running something like xclock this happens:



debug3: receive packet: type 90
debug1: client_input_channel_open: ctype x11 rchan 2 win 65536 max 16384
debug1: client_request_x11: request from 127.0.0.1 59790
debug2: fd 7 setting O_NONBLOCK
debug3: fd 7 is O_NONBLOCK
debug1: channel 1: new [x11]
debug1: confirm x11
debug3: send packet: type 91


The terminal also dies after this i have to restart a new terminal.
No clock is showing up on local pc also there is no error... Any idea? When i try the same from Win 10 with xming and putty it works. Server has activated x11 forwarding.










share|improve this question





























    0















    i am using ubuntu 16.04. The Server is also running ubuntu 16.04.



    my /etc/ssh/ssh_config looks so:



    Host *
    # ForwardAgent no
    ForwardX11 yes
    ForwardX11Trusted yes
    # RhostsRSAAuthentication no
    # RSAAuthentication yes
    # PasswordAuthentication yes
    # HostbasedAuthentication no
    # GSSAPIAuthentication no
    # GSSAPIDelegateCredentials no
    # GSSAPIKeyExchange no
    # GSSAPITrustDNS no
    # BatchMode no
    # CheckHostIP yes
    # AddressFamily any
    # ConnectTimeout 0
    # StrictHostKeyChecking ask
    # IdentityFile ~/.ssh/identity
    # IdentityFile ~/.ssh/id_rsa
    # IdentityFile ~/.ssh/id_dsa
    # IdentityFile ~/.ssh/id_ecdsa
    # IdentityFile ~/.ssh/id_ed25519
    # Port 22
    # Protocol 2
    # Cipher 3des
    # Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
    # MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160
    # EscapeChar ~
    # Tunnel no
    # TunnelDevice any:any
    # PermitLocalCommand no
    # VisualHostKey no
    # ProxyCommand ssh -q -W %h:%p gateway.example.com
    # RekeyLimit 1G 1h
    SendEnv LANG LC_*
    HashKnownHosts yes
    GSSAPIAuthentication yes
    GSSAPIDelegateCredentials no


    server sshd_config:



    X11Forwarding yes
    X11DisplayOffset 10


    When i connect to a ssh Server :



    ssh -vvv -Y server


    ssh connects to the server.
    When i running something like xclock this happens:



    debug3: receive packet: type 90
    debug1: client_input_channel_open: ctype x11 rchan 2 win 65536 max 16384
    debug1: client_request_x11: request from 127.0.0.1 59790
    debug2: fd 7 setting O_NONBLOCK
    debug3: fd 7 is O_NONBLOCK
    debug1: channel 1: new [x11]
    debug1: confirm x11
    debug3: send packet: type 91


    The terminal also dies after this i have to restart a new terminal.
    No clock is showing up on local pc also there is no error... Any idea? When i try the same from Win 10 with xming and putty it works. Server has activated x11 forwarding.










    share|improve this question



























      0












      0








      0








      i am using ubuntu 16.04. The Server is also running ubuntu 16.04.



      my /etc/ssh/ssh_config looks so:



      Host *
      # ForwardAgent no
      ForwardX11 yes
      ForwardX11Trusted yes
      # RhostsRSAAuthentication no
      # RSAAuthentication yes
      # PasswordAuthentication yes
      # HostbasedAuthentication no
      # GSSAPIAuthentication no
      # GSSAPIDelegateCredentials no
      # GSSAPIKeyExchange no
      # GSSAPITrustDNS no
      # BatchMode no
      # CheckHostIP yes
      # AddressFamily any
      # ConnectTimeout 0
      # StrictHostKeyChecking ask
      # IdentityFile ~/.ssh/identity
      # IdentityFile ~/.ssh/id_rsa
      # IdentityFile ~/.ssh/id_dsa
      # IdentityFile ~/.ssh/id_ecdsa
      # IdentityFile ~/.ssh/id_ed25519
      # Port 22
      # Protocol 2
      # Cipher 3des
      # Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
      # MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160
      # EscapeChar ~
      # Tunnel no
      # TunnelDevice any:any
      # PermitLocalCommand no
      # VisualHostKey no
      # ProxyCommand ssh -q -W %h:%p gateway.example.com
      # RekeyLimit 1G 1h
      SendEnv LANG LC_*
      HashKnownHosts yes
      GSSAPIAuthentication yes
      GSSAPIDelegateCredentials no


      server sshd_config:



      X11Forwarding yes
      X11DisplayOffset 10


      When i connect to a ssh Server :



      ssh -vvv -Y server


      ssh connects to the server.
      When i running something like xclock this happens:



      debug3: receive packet: type 90
      debug1: client_input_channel_open: ctype x11 rchan 2 win 65536 max 16384
      debug1: client_request_x11: request from 127.0.0.1 59790
      debug2: fd 7 setting O_NONBLOCK
      debug3: fd 7 is O_NONBLOCK
      debug1: channel 1: new [x11]
      debug1: confirm x11
      debug3: send packet: type 91


      The terminal also dies after this i have to restart a new terminal.
      No clock is showing up on local pc also there is no error... Any idea? When i try the same from Win 10 with xming and putty it works. Server has activated x11 forwarding.










      share|improve this question
















      i am using ubuntu 16.04. The Server is also running ubuntu 16.04.



      my /etc/ssh/ssh_config looks so:



      Host *
      # ForwardAgent no
      ForwardX11 yes
      ForwardX11Trusted yes
      # RhostsRSAAuthentication no
      # RSAAuthentication yes
      # PasswordAuthentication yes
      # HostbasedAuthentication no
      # GSSAPIAuthentication no
      # GSSAPIDelegateCredentials no
      # GSSAPIKeyExchange no
      # GSSAPITrustDNS no
      # BatchMode no
      # CheckHostIP yes
      # AddressFamily any
      # ConnectTimeout 0
      # StrictHostKeyChecking ask
      # IdentityFile ~/.ssh/identity
      # IdentityFile ~/.ssh/id_rsa
      # IdentityFile ~/.ssh/id_dsa
      # IdentityFile ~/.ssh/id_ecdsa
      # IdentityFile ~/.ssh/id_ed25519
      # Port 22
      # Protocol 2
      # Cipher 3des
      # Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
      # MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160
      # EscapeChar ~
      # Tunnel no
      # TunnelDevice any:any
      # PermitLocalCommand no
      # VisualHostKey no
      # ProxyCommand ssh -q -W %h:%p gateway.example.com
      # RekeyLimit 1G 1h
      SendEnv LANG LC_*
      HashKnownHosts yes
      GSSAPIAuthentication yes
      GSSAPIDelegateCredentials no


      server sshd_config:



      X11Forwarding yes
      X11DisplayOffset 10


      When i connect to a ssh Server :



      ssh -vvv -Y server


      ssh connects to the server.
      When i running something like xclock this happens:



      debug3: receive packet: type 90
      debug1: client_input_channel_open: ctype x11 rchan 2 win 65536 max 16384
      debug1: client_request_x11: request from 127.0.0.1 59790
      debug2: fd 7 setting O_NONBLOCK
      debug3: fd 7 is O_NONBLOCK
      debug1: channel 1: new [x11]
      debug1: confirm x11
      debug3: send packet: type 91


      The terminal also dies after this i have to restart a new terminal.
      No clock is showing up on local pc also there is no error... Any idea? When i try the same from Win 10 with xming and putty it works. Server has activated x11 forwarding.







      ubuntu ssh x11






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 14 '18 at 9:21







      Dominik Kaeufer

















      asked Dec 12 '18 at 13:07









      Dominik KaeuferDominik Kaeufer

      11




      11






















          2 Answers
          2






          active

          oldest

          votes


















          0














          You need to add ForwardX11 yes to ssh-users ~/.ssh/config file



          /etc/ssh/sshd_config needs the setting X11Forwarding yes






          share|improve this answer
























          • i wrote above that both are activated... Posted my ssh_config file also

            – Dominik Kaeufer
            Dec 13 '18 at 10:18











          • ForwardX11 is not X11Forwarding, right?

            – Michael D.
            Dec 13 '18 at 10:54











          • On the server x11 Forwarding is activated i wrote this below...I can access via win 10 with xming and putty so it must be activated or am i wrong?

            – Dominik Kaeufer
            Dec 13 '18 at 11:42











          • i copied the x11Forwarding from sshd_config into the post so that u can see it is activated

            – Dominik Kaeufer
            Dec 13 '18 at 11:48











          • On client side you need to run ssh -X or enable via ~/.ssh/config see unix.stackexchange.com/questions/12755/…

            – Michael D.
            Dec 13 '18 at 15:35



















          0














          One detail of configuration that I have stumbled over in the past, and could possibly be causing your trouble, is clarified by one sentence in man sshd_config. Also, man ssh_config says something similar.




          For each keyword, the first obtained value will be used.




          This seems counterintuitive to me, but if you have the same line with different values in ssh_config and/or ~/.ssh/config on the machine your using, it's the first one that will take effect. Later ones will be ignored.



          Same for sshd_config on the distant machine.





          share























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "106"
            };
            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: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            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%2funix.stackexchange.com%2fquestions%2f487572%2fx11-forwarding-seems-not-working%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














            You need to add ForwardX11 yes to ssh-users ~/.ssh/config file



            /etc/ssh/sshd_config needs the setting X11Forwarding yes






            share|improve this answer
























            • i wrote above that both are activated... Posted my ssh_config file also

              – Dominik Kaeufer
              Dec 13 '18 at 10:18











            • ForwardX11 is not X11Forwarding, right?

              – Michael D.
              Dec 13 '18 at 10:54











            • On the server x11 Forwarding is activated i wrote this below...I can access via win 10 with xming and putty so it must be activated or am i wrong?

              – Dominik Kaeufer
              Dec 13 '18 at 11:42











            • i copied the x11Forwarding from sshd_config into the post so that u can see it is activated

              – Dominik Kaeufer
              Dec 13 '18 at 11:48











            • On client side you need to run ssh -X or enable via ~/.ssh/config see unix.stackexchange.com/questions/12755/…

              – Michael D.
              Dec 13 '18 at 15:35
















            0














            You need to add ForwardX11 yes to ssh-users ~/.ssh/config file



            /etc/ssh/sshd_config needs the setting X11Forwarding yes






            share|improve this answer
























            • i wrote above that both are activated... Posted my ssh_config file also

              – Dominik Kaeufer
              Dec 13 '18 at 10:18











            • ForwardX11 is not X11Forwarding, right?

              – Michael D.
              Dec 13 '18 at 10:54











            • On the server x11 Forwarding is activated i wrote this below...I can access via win 10 with xming and putty so it must be activated or am i wrong?

              – Dominik Kaeufer
              Dec 13 '18 at 11:42











            • i copied the x11Forwarding from sshd_config into the post so that u can see it is activated

              – Dominik Kaeufer
              Dec 13 '18 at 11:48











            • On client side you need to run ssh -X or enable via ~/.ssh/config see unix.stackexchange.com/questions/12755/…

              – Michael D.
              Dec 13 '18 at 15:35














            0












            0








            0







            You need to add ForwardX11 yes to ssh-users ~/.ssh/config file



            /etc/ssh/sshd_config needs the setting X11Forwarding yes






            share|improve this answer













            You need to add ForwardX11 yes to ssh-users ~/.ssh/config file



            /etc/ssh/sshd_config needs the setting X11Forwarding yes







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Dec 13 '18 at 9:25









            Michael D.Michael D.

            1,577816




            1,577816













            • i wrote above that both are activated... Posted my ssh_config file also

              – Dominik Kaeufer
              Dec 13 '18 at 10:18











            • ForwardX11 is not X11Forwarding, right?

              – Michael D.
              Dec 13 '18 at 10:54











            • On the server x11 Forwarding is activated i wrote this below...I can access via win 10 with xming and putty so it must be activated or am i wrong?

              – Dominik Kaeufer
              Dec 13 '18 at 11:42











            • i copied the x11Forwarding from sshd_config into the post so that u can see it is activated

              – Dominik Kaeufer
              Dec 13 '18 at 11:48











            • On client side you need to run ssh -X or enable via ~/.ssh/config see unix.stackexchange.com/questions/12755/…

              – Michael D.
              Dec 13 '18 at 15:35



















            • i wrote above that both are activated... Posted my ssh_config file also

              – Dominik Kaeufer
              Dec 13 '18 at 10:18











            • ForwardX11 is not X11Forwarding, right?

              – Michael D.
              Dec 13 '18 at 10:54











            • On the server x11 Forwarding is activated i wrote this below...I can access via win 10 with xming and putty so it must be activated or am i wrong?

              – Dominik Kaeufer
              Dec 13 '18 at 11:42











            • i copied the x11Forwarding from sshd_config into the post so that u can see it is activated

              – Dominik Kaeufer
              Dec 13 '18 at 11:48











            • On client side you need to run ssh -X or enable via ~/.ssh/config see unix.stackexchange.com/questions/12755/…

              – Michael D.
              Dec 13 '18 at 15:35

















            i wrote above that both are activated... Posted my ssh_config file also

            – Dominik Kaeufer
            Dec 13 '18 at 10:18





            i wrote above that both are activated... Posted my ssh_config file also

            – Dominik Kaeufer
            Dec 13 '18 at 10:18













            ForwardX11 is not X11Forwarding, right?

            – Michael D.
            Dec 13 '18 at 10:54





            ForwardX11 is not X11Forwarding, right?

            – Michael D.
            Dec 13 '18 at 10:54













            On the server x11 Forwarding is activated i wrote this below...I can access via win 10 with xming and putty so it must be activated or am i wrong?

            – Dominik Kaeufer
            Dec 13 '18 at 11:42





            On the server x11 Forwarding is activated i wrote this below...I can access via win 10 with xming and putty so it must be activated or am i wrong?

            – Dominik Kaeufer
            Dec 13 '18 at 11:42













            i copied the x11Forwarding from sshd_config into the post so that u can see it is activated

            – Dominik Kaeufer
            Dec 13 '18 at 11:48





            i copied the x11Forwarding from sshd_config into the post so that u can see it is activated

            – Dominik Kaeufer
            Dec 13 '18 at 11:48













            On client side you need to run ssh -X or enable via ~/.ssh/config see unix.stackexchange.com/questions/12755/…

            – Michael D.
            Dec 13 '18 at 15:35





            On client side you need to run ssh -X or enable via ~/.ssh/config see unix.stackexchange.com/questions/12755/…

            – Michael D.
            Dec 13 '18 at 15:35













            0














            One detail of configuration that I have stumbled over in the past, and could possibly be causing your trouble, is clarified by one sentence in man sshd_config. Also, man ssh_config says something similar.




            For each keyword, the first obtained value will be used.




            This seems counterintuitive to me, but if you have the same line with different values in ssh_config and/or ~/.ssh/config on the machine your using, it's the first one that will take effect. Later ones will be ignored.



            Same for sshd_config on the distant machine.





            share




























              0














              One detail of configuration that I have stumbled over in the past, and could possibly be causing your trouble, is clarified by one sentence in man sshd_config. Also, man ssh_config says something similar.




              For each keyword, the first obtained value will be used.




              This seems counterintuitive to me, but if you have the same line with different values in ssh_config and/or ~/.ssh/config on the machine your using, it's the first one that will take effect. Later ones will be ignored.



              Same for sshd_config on the distant machine.





              share


























                0












                0








                0







                One detail of configuration that I have stumbled over in the past, and could possibly be causing your trouble, is clarified by one sentence in man sshd_config. Also, man ssh_config says something similar.




                For each keyword, the first obtained value will be used.




                This seems counterintuitive to me, but if you have the same line with different values in ssh_config and/or ~/.ssh/config on the machine your using, it's the first one that will take effect. Later ones will be ignored.



                Same for sshd_config on the distant machine.





                share













                One detail of configuration that I have stumbled over in the past, and could possibly be causing your trouble, is clarified by one sentence in man sshd_config. Also, man ssh_config says something similar.




                For each keyword, the first obtained value will be used.




                This seems counterintuitive to me, but if you have the same line with different values in ssh_config and/or ~/.ssh/config on the machine your using, it's the first one that will take effect. Later ones will be ignored.



                Same for sshd_config on the distant machine.






                share











                share


                share










                answered 5 mins ago









                Ken JacksonKen Jackson

                1




                1






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • 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%2funix.stackexchange.com%2fquestions%2f487572%2fx11-forwarding-seems-not-working%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

                    CARDNET

                    Boot-repair Failure: Unable to locate package grub-common:i386

                    濃尾地震