Results 1 to 8 of 8

Thread: SSH x11 forwarding error

  1. #1
    Join Date
    Apr 2023
    Beans
    3

    SSH x11 forwarding error

    As i am trying to SSH through X11 the server always comes back with the error

    X11 connection rejected because of wrong authentication.
    Error: cannot open display: localhost:11.0

    When i than trouble shoot and use the following command:

    grep X11Forwarding /etc/ssh/sshd_config

    I get the following response:

    X11Forwarding yes
    # X11Forwarding no



    My question now is what does the second one that is off imply?

    Does this mean something is overriding the standard setting in sshd_config?

    When i nano in the settings X11 forwarding is on.

    Any help would be extremely valued.

    P.S. im using a standard mac terminal, xterm doesn't let me SSH to the server

  2. #2
    Join Date
    May 2010
    Beans
    3,500

    Re: SSH x11 forwarding error

    The second line in the grep is a comment, so is ignored in every way. Do you have an X server running on the Mac? The application needs an X server on the client system to stick to.

    This site suggests Quartz
    https://www.businessnewsdaily.com/11...orwarding.html

  3. #3
    Join Date
    Apr 2023
    Beans
    3

    Re: SSH x11 forwarding error

    XQuartz runs on the client side when trying to ssh -X to the server

  4. #4
    Join Date
    May 2010
    Beans
    3,500

    Re: SSH x11 forwarding error

    Quote Originally Posted by l6qu9d View Post
    XQuartz runs on the client side when trying to ssh -X to the server
    It needs to be running, otherwise the application has no X server to run in.

  5. #5
    Join Date
    May 2010
    Beans
    3,500

    Re: SSH x11 forwarding error

    Quote Originally Posted by l6qu9d View Post
    XQuartz runs on the client side when trying to ssh -X to the server
    https://youtu.be/UwQCq35TRXw

    It needs installing as an extra piece of software. The video gives a good guide.

  6. #6
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: SSH x11 forwarding error

    +1 to ActionParsnip's great answer.

    MAC OSX needs Quarts to render the graphics of ssh XForwarding. (Otherwise it has no compatible renderer.)

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  7. #7
    Join Date
    Apr 2023
    Beans
    3

    Re: SSH x11 forwarding error

    The print of the terminal displays:
    /usr/bin/firefox: 12: xdg-settings: not found
    X11 connection rejected because of wrong authentication.
    X11 connection rejected because of wrong authentication.
    Error: cannot open display: localhost:10.0

    Xquartz is not the issue, it is running, so it's already installed...

    I'm pretty sure the issue lays in the settings on the server side

  8. #8
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: SSH x11 forwarding error

    Make sure XForwarding actually works first...
    Code:
    ssh -X user_name@server_ip
    Test with 'xeyes' or 'xclock'...

    Then note that XForwarding has a problem rendering 'anything' installed on the remote server that is installed with Snap, so if Firefox on the remote XServer has Firefox installed as a Snap package, it will have a problem because of how it does sandboxing and the permissions associated with that...

    So to get around that... Then do this to set an Environment variable to extend that sandbox... as a work-around.
    Code:
    mafoelffen@Mikes-B460M:~$ export XAUTHORITY=$HOME/.Xauthority
    mafoelffen@Mikes-B460M:~$ firefox --no-remote --no-xshm
    At least that works on my Computers here...
    Last edited by MAFoElffen; April 10th, 2023 at 06:29 PM. Reason: Fix CODE Tag

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •