X11 forwarding seems not working?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












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 at 9:21

























      asked Dec 12 at 13:07









      Dominik Kaeufer

      11




      11




















          1 Answer
          1






          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 at 10:18










          • ForwardX11 is not X11Forwarding, right?
            – Michael D.
            Dec 13 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 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 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 at 15:35










          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

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          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 at 10:18










          • ForwardX11 is not X11Forwarding, right?
            – Michael D.
            Dec 13 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 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 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 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 at 10:18










          • ForwardX11 is not X11Forwarding, right?
            – Michael D.
            Dec 13 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 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 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 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 at 9:25









          Michael D.

          1,534816




          1,534816











          • i wrote above that both are activated... Posted my ssh_config file also
            – Dominik Kaeufer
            Dec 13 at 10:18










          • ForwardX11 is not X11Forwarding, right?
            – Michael D.
            Dec 13 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 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 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 at 15:35
















          • i wrote above that both are activated... Posted my ssh_config file also
            – Dominik Kaeufer
            Dec 13 at 10:18










          • ForwardX11 is not X11Forwarding, right?
            – Michael D.
            Dec 13 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 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 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 at 15:35















          i wrote above that both are activated... Posted my ssh_config file also
          – Dominik Kaeufer
          Dec 13 at 10:18




          i wrote above that both are activated... Posted my ssh_config file also
          – Dominik Kaeufer
          Dec 13 at 10:18












          ForwardX11 is not X11Forwarding, right?
          – Michael D.
          Dec 13 at 10:54




          ForwardX11 is not X11Forwarding, right?
          – Michael D.
          Dec 13 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 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 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 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 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 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 at 15:35

















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?