• Re: Remote server problem

    From Arti F. Idiot@21:1/5 to pinnerite on Fri Jul 5 16:26:48 2024
    XPost: alt.os.linux.mint, alt.os.linux.mageia

    On 7/5/24 1:01 PM, pinnerite wrote:
    I am trying to run http://localhost:6544 from Firefox executed from a
    secure shell: $ sudo ssh -X alan@origen

    But it will not open. It returns.

    "Unable to connect

    Firefox can’t establish a connection to the server at localhost:6544.

    The site could be temporarily unavailable or too busy. Try again in
    a few moments. If you are unable to load any pages, check your
    computer’s network connection. If your computer or network is protected
    by a firewall or proxy, make sure that Firefox is permitted to access
    the web."

    origen $ sudo /firefox returns:
    X11 connection rejected because of wrong authentication.
    Error: cannot open display: localhost:10.0

    From the client machine I executed:
    $ export XAUTHORITY=$HOME/.Xauthority

    but that did not help.

    Has anyone any tips?

    You probably need to set the following in /etc/ssh/sshd_config:

    X11Forwarding yes

    Default is "no"; you'll need to restart the service or reboot.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From stepore@21:1/5 to pinnerite on Fri Jul 5 20:47:19 2024
    On 7/5/24 12:01, pinnerite wrote:
    I am trying to run http://localhost:6544 from Firefox executed from a
    secure shell: $ sudo ssh -X alan@origen

    Why? Why are you using sudo to ssh into another PC? You should not be
    doing that or allowing root logins across ssh. Bad form. And running an
    X11 as root/sudo, that's not super cool either!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul@21:1/5 to stepore on Sat Jul 6 06:00:22 2024
    On 7/5/2024 11:47 PM, stepore wrote:
    On 7/5/24 12:01, pinnerite wrote:
    I am trying to run http://localhost:6544 from Firefox executed from a
    secure shell:  $ sudo ssh -X alan@origen

    Why? Why are you using sudo to ssh into another PC? You should not be
    doing that or allowing root logins across ssh. Bad form. And running an
    X11 as root/sudo, that's not super cool either!


    Here is the real question.

    **********************************************************************************************
    https://forums.linuxmint.com/viewtopic.php?t=423416

    "Cannot open http://localhost:6544
    Mon Jul 01, 2024 3:36 pm

    This on Mint 21.3 and kernel 5.15.0-112.
    I need to open http://localhost:6544/setupwizard which provides access to MythTV backend.

    It had been working until a series of updates and no doubt,
    changes made made to improve matters ...

    I have checked the firewall and the 6544 is open.

    The bind address in /etc/mysql/conf.d/mythtv.cnf is:

    [mysqld]
    bind-address =*
    max_connections=100

    I cleared Firefox's cache.
    I cannot think of any further steps that I can take. <=== [Uses sledge hammer to cut self a slice of cake :-) ]
    " **********************************************************************************************

    This is sort of the orbit. Either checking status via some webserver
    that displays info about a mysql instance. Or, ssh into the machine
    and give mysql a command directly.

    https://forum.mythtv.org/viewtopic.php?t=3919

    The Arch info, starts in 2015.

    https://wiki.archlinux.org/title/MythTV

    The Ubuntu info, is much older (non-systemd)

    https://help.ubuntu.com/community/MythTV/Install/Troubleshooting#head-75ded5e7682340f0a88f9ed6ec69a68b6a8b4162

    sudo /etc/init.d/mythtv-backend restart

    It seems no one in this club, ever draws a block diagram. Not evar.

    Paul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul@21:1/5 to Arti F. Idiot on Sat Jul 6 06:03:44 2024
    XPost: alt.os.linux.mint, alt.os.linux.mageia

    On 7/5/2024 6:26 PM, Arti F. Idiot wrote:
    On 7/5/24 1:01 PM, pinnerite wrote:
    I am trying to run http://localhost:6544 from Firefox executed from a
    secure shell:  $ sudo ssh -X alan@origen

    But it will not open. It returns.

    "Unable to connect

    Firefox can’t establish a connection to the server at localhost:6544.

    The site could be temporarily unavailable or too busy. Try again in
    a few moments. If you are unable to load any pages, check your
    computer’s network connection. If your computer or network is protected
    by a firewall or proxy, make sure that Firefox is permitted to access
    the web."

    origen $ sudo /firefox returns:
    X11 connection rejected because of wrong authentication.
    Error: cannot open display: localhost:10.0

     From the client machine I executed:
    $ export XAUTHORITY=$HOME/.Xauthority

    but that did not help.

    Has anyone any tips?

    You probably need to set the following in /etc/ssh/sshd_config:

      X11Forwarding yes

    Default is "no"; you'll need to restart the service or reboot.

    Context:

    **********************************************************************************************
    https://forums.linuxmint.com/viewtopic.php?t=423416

    "Cannot open http://localhost:6544
    Mon Jul 01, 2024 3:36 pm

    This on Mint 21.3 and kernel 5.15.0-112.
    I need to open http://localhost:6544/setupwizard which provides access to MythTV backend.

    It had been working until a series of updates and no doubt,
    changes made made to improve matters ...

    I have checked the firewall and the 6544 is open.

    The bind address in /etc/mysql/conf.d/mythtv.cnf is:

    [mysqld]
    bind-address =*
    max_connections=100

    I cleared Firefox's cache.
    I cannot think of any further steps that I can take. <=== [then uses sledge hammer to cut self a slice of cake]
    " **********************************************************************************************

    Paul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Arti F. Idiot@21:1/5 to pinnerite on Sat Jul 6 08:05:26 2024
    XPost: alt.os.linux.mint, alt.os.linux.mageia

    On 7/5/24 1:01 PM, pinnerite wrote:
    I am trying to runhttp://localhost:6544 from Firefox executed from a
    secure shell: $ sudo ssh -X alan@origen

    But it will not open. It returns.

    "Unable to connect
    Does '$ ssh -Y alan@origen' work ? "-Y" is like "-X" w/o trust issues.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)