• [gentoo-user] xpra permissions

    From n952162@21:1/5 to All on Sun Jan 12 10:10:01 2025
    This is a multi-part message in MIME format.
    Hello all,

    I'm trying to run xpra as a server on a gentoo box but I get the
    following error on connection:

    /user@host: Permission denied (publickey,keyboard-interactive)./

    My nixos client works well with nixos servers, just not gentoo servers. 
    I don't find a use flag that looks relevant, but maybe I'm overlooking something?

    TIA.

    <!DOCTYPE html>
    <html>
    <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    </head>
    <body>
    <p>Hello all,</p>
    <p>I'm trying to run xpra as a server on a gentoo box but I get the
    following error on connection:<br>
    </p>
    <blockquote>
    <p><i>user@host: Permission denied
    (publickey,keyboard-interactive).</i></p>
    </blockquote>
    <p>My nixos client works well with nixos servers, just not gentoo
    servers.  I don't find a use flag that looks relevant, but maybe
    I'm overlooking something?</p>
    <p>TIA.<br>
    </p>
    </body>
    </html>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael@21:1/5 to All on Sun Jan 12 10:07:11 2025
    On Sunday 12 January 2025 09:08:51 Greenwich Mean Time n952162 wrote:
    Hello all,

    I'm trying to run xpra as a server on a gentoo box but I get the
    following error on connection:

    /user@host: Permission denied (publickey,keyboard-interactive)./

    My nixos client works well with nixos servers, just not gentoo servers.
    I don't find a use flag that looks relevant, but maybe I'm overlooking something?

    TIA.

    Check the content of .ssh/authorized_keys and the file's permissions. Perhaps they need adjusting?
    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmeDlE8ACgkQseqq9sKV ZxluTA//elGTaSjQD6APt1uF5NfP4P9jWZetgkBdnfiWsC0FqwGL7fwxlWiHv4KC V/yzC42QIBYGyhW5ex15MqC2YhpKfIso5YM6mScU4L46bSAyXoSLkaf8EjpMnsfa se61ySE3PU+NXh9RuuKeffFz2b5tQap2NWQXQ4MBvuk+J0laUIvc5bAmurnxOxXb F32xR3+VBo6s9zPnDGg6v+xvqBW4ubv/fhjbWDJgc5BMb+oqHrnAt9Nl9GZQOCZx /1sTrggNZnCJqpv2n4faLXYzhZ5hWbesh8rTj64z2zECJVgzUj43EjDMKY15Rf/+ 2jy2I3+ZCpDCueB/6KLuxzuG0BVx8/ymo46j+UllI/DLKQO1JOVNHqJKL1FiDWD6 BTjGjOzQKZjfby7RHMvSkrnQgWeIYlHHQTUXah6qKOjXCl+6/VmLtIDC4n9nDZr7 K2McSO6fy7u09gocomlln3cEpoZjapZ4nCmzFQyG59JF6NAk64b/btdh8k5lmT8R 5CbGy+zjZX2JTJAGEBxMXKsaYMFxpTKo2G/H1SISje56K61Y2mZmUWepppAxSciq PCC6VsmnunYfX/SxSubNwSxLpdj3VUiDFvAhKrtI2fFCBwoQSBW28RGYEEo91ldv QkWU+vMqmI3iN/s9C77GBi2lbNhRgV5w8kOL25TcvnTSxH8vkBA=
    =mGtf
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From n952162@21:1/5 to Michael on Sun Jan 12 11:50:01 2025
    This is a multi-part message in MIME format.
    Thank you, that gave me the hint I needed for the first step ... I use
    an ssh option for nixos that's not need for gentoo: /"-o PreferredAuthentications=password"/

    But now I've got a new problem (or problems) that might be gentoo-related:

    /Warning: XDG_RUNTIME_DIR is not defined
     and '/run/user/1010' does not exist
     using '/tmp'
    server socket for display :2 not found

     waiting up to 20 seconds

    xpra initialization error:
     cannot find live server for display :2
    /

    $XDG_RUNTIME_DIR *does* exist, on the server and the client.
    /run/user/1010 exists on the (nixos) client, but there's no /run/user on
    gentoo (that I can see). Therefore, my $XDG_RUNTIME_DIR is set to
    ~/.xpra, which is present and rwe by the user, as is ~/.xdg/xpra. 
    There's a ~/.xdg/xpra/2/socket with a recent timestamp.  There's nothing relevant in /tmp on the server or the client.

    Clearly related is this, when I try to stop xpra on the server:

    /$ xpra stop
    xpra initialization error:
     cannot find any live servers to connect to/
    /
    /
    /$ ps -ef | grep xpra
    user   2544     1  0 09:58 ?        00:00:01 /usr/bin/python3.11
    /bin/xpra start :2 --st.../


    On 2025/01/12 11:07, Michael wrote:
    On Sunday 12 January 2025 09:08:51 Greenwich Mean Time n952162 wrote:
    Hello all,

    I'm trying to run xpra as a server on a gentoo box but I get the
    following error on connection:

    /user@host: Permission denied (publickey,keyboard-interactive)./

    My nixos client works well with nixos servers, just not gentoo servers.
    I don't find a use flag that looks relevant, but maybe I'm overlooking
    something?

    TIA.
    Check the content of .ssh/authorized_keys and the file's permissions. Perhaps
    they need adjusting?

    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
    <p>Thank you, that gave me the hint I needed for the first step ...
    I use an ssh option for nixos that's not need for gentoo:  <i>"-o
    PreferredAuthentications=password"</i></p>
    <p>But now I've got a new problem (or problems) that might be
    gentoo-related:</p>
    <blockquote>
    <p><i>Warning: XDG_RUNTIME_DIR is not defined<br>
     and '/run/user/1010' does not exist<br>
     using '/tmp'<br>
    server socket for display :2 not found<br>
    <br>
     waiting up to 20 seconds<br>
    <br>
    xpra initialization error:<br>
     cannot find live server for display :2<br>
    </i><br>
    </p>
    </blockquote>
    <div class="moz-cite-prefix">$XDG_RUNTIME_DIR <b>does</b> exist, on
    the server and the client.</div>
    <div class="moz-cite-prefix">/run/user/1010 exists on the (nixos)
    client, but there's no /run/user on gentoo (that I can see). 
    Therefore, my $XDG_RUNTIME_DIR is set to ~/.xpra, which is present
    and rwe by the user, as is ~/.xdg/xpra.  There's a
    ~/.xdg/xpra/2/socket with a recent timestamp.  There's nothing
    relevant in /tmp on the server or the client.<br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Clearly related is this, when I try to
    stop xpra on the server:</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <blockquote>
    <div class="moz-cite-prefix"><i>$ xpra stop<br>
    xpra initialization error:<br>
     cannot find any live servers to connect to</i></div>
    <div class="moz-cite-prefix"><i><br>
    </i></div>
    <div class="moz-cite-prefix"><i>$ ps -ef | grep xpra<br>
    user   2544     1  0 09:58 ?        00:00:01
    /usr/bin/python3.11 /bin/xpra start :2 --st...</i></div>
    </blockquote>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">On 2025/01/12 11:07, Michael wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:2296761.iZASKD2KPV@rogueboard">
    <pre class="moz-quote-pre" wrap="">On Sunday 12 January 2025 09:08:51 Greenwich Mean Time n952162 wrote:
    </pre>
    <blockquote type="cite">
    <pre class="moz-quote-pre" wrap="">Hello all,

    I'm trying to run xpra as a server on a gentoo box but I get the
    following error on connection:

    /user@host: Permission denied (publickey,keyboard-interactive)./

    My nixos client works well with nixos servers, just not gentoo servers.
    I don't find a use flag that looks relevant, but maybe I'm overlooking something?

    TIA.
    </pre>
    </blockquote>
    <pre class="moz-quote-pre" wrap="">
    Check the content of .ssh/authorized_keys and the file's permissions. Perhaps they need adjusting?</pre>
    </blockquote>
    </body>
    </html>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael@21:1/5 to All on Sun Jan 12 12:22:36 2025
    On Sunday 12 January 2025 10:41:23 Greenwich Mean Time n952162 wrote:
    Thank you, that gave me the hint I needed for the first step ... I use
    an ssh option for nixos that's not need for gentoo: /"-o PreferredAuthentications=password"/

    You can use a user password to login over SSH or public key. It is a matter
    of configuring the sshd accordingly and using either method from the client.


    But now I've got a new problem (or problems) that might be gentoo-related:

    /Warning: XDG_RUNTIME_DIR is not defined
    and '/run/user/1010' does not exist
    using '/tmp'
    server socket for display :2 not found

    I don't know anything about xpra, but the error points to a user account not being available/configured correctly?

    Have you tried connecting locally on the server with no user (you'll be
    already logged in), before you try connecting from the client remotely using the correct user@host incantation?


    waiting up to 20 seconds

    xpra initialization error:
    cannot find live server for display :2
    /

    $XDG_RUNTIME_DIR *does* exist, on the server and the client.
    /run/user/1010 exists on the (nixos) client, but there's no /run/user on gentoo (that I can see). Therefore, my $XDG_RUNTIME_DIR is set to
    ~/.xpra, which is present and rwe by the user, as is ~/.xdg/xpra.
    There's a ~/.xdg/xpra/2/socket with a recent timestamp. There's nothing relevant in /tmp on the server or the client.

    Clearly related is this, when I try to stop xpra on the server:

    /$ xpra stop
    xpra initialization error:
    cannot find any live servers to connect to/
    /
    /
    /$ ps -ef | grep xpra
    user 2544 1 0 09:58 ? 00:00:01 /usr/bin/python3.11
    /bin/xpra start :2 --st.../

    Hmm ... the UID cannot say "user" unless you created the username as "user"? -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmeDtAwACgkQseqq9sKV Zxk41Q//ZaaHUCe3Y9f/MOMGMYv+xpWsg6jPh6cAQ0mxNdrvUxQ6QM1UUt2voIQ4 nhOgf3ofOs4+JqTqyXVcdRQcnbbZ+Va+drGW0/NrOccw7oHSzYpZCkAfu09wW9kt nR4vBD+APsrJX6YbBNz+aqnr1muy4r1e5RQ53UMBtrF/cDZ8q6f6KFhb2kMXEZO8 eaN2u3RLV3CE8Zl6o1G/PAfDVy+1Fa4iQSBpKi/kktXCKTdt7xIXWNswK7rcpavT tgDkG/DxTTq/kHJ/C6QGnlLGI/Apt4xvSdizxowOiR6i9+caPNy//HWPQhl3cnAC oYGByznqfLpSTEnmed99jDU92Cga0nzt27HgAqlklZfqK6SzDXQBJHc5ays6AAl1 Ul8plmJ8uU46iCAH3r/Glju6X7xq8c7cqzyF3pSqsd0PuDS7GHp5iFMd1REvRw/P xKA3LKf1DXI68AtpZe0VPDXKm+UJOqJghoqnGxzFmYsSJZi8IENGB/mVQh19w3uz eO660aw/jJDbwTWGuJQsbFFgBwIMyVuQiyB97pzvY3GkbkAv/itY6T7esm7M8pf1 Y6uikzcX78bHsnpe+HIl03PHWPqTchXACrP0kO32zni1lNrb1w9Zx/5y6q5J/D4m GQzqEdEG1sZNftHebiaWylxX8fKrpEld/w6mGHsRlbdBqwH2e1A=
    =p5yD
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From n952162@21:1/5 to Michael on Sun Jan 12 13:50:02 2025
    On 2025/01/12 13:22, Michael wrote:
    On Sunday 12 January 2025 10:41:23 Greenwich Mean Time n952162 wrote:
    Thank you, that gave me the hint I needed for the first step ... I use
    an ssh option for nixos that's not need for gentoo: /"-o
    PreferredAuthentications=password"/
    You can use a user password to login over SSH or public key. It is a matter of configuring the sshd accordingly and using either method from the client.


    Yes.




    But now I've got a new problem (or problems) that might be gentoo-related: >>
    /Warning: XDG_RUNTIME_DIR is not defined
    and '/run/user/1010' does not exist
    using '/tmp'
    server socket for display :2 not found
    I don't know anything about xpra, but the error points to a user account not being available/configured correctly?


    I'm thinking it has to do with the configuration of the configuration
    files, as used by both server and client, locally and remotely.



    Have you tried connecting locally on the server with no user (you'll be already logged in), before you try connecting from the client remotely using the correct user@host incantation?


    That was a good idea, logging in locally.  I got the same error, though.



    waiting up to 20 seconds

    xpra initialization error:
    cannot find live server for display :2
    /

    $XDG_RUNTIME_DIR *does* exist, on the server and the client.
    /run/user/1010 exists on the (nixos) client, but there's no /run/user on
    gentoo (that I can see). Therefore, my $XDG_RUNTIME_DIR is set to
    ~/.xpra, which is present and rwe by the user, as is ~/.xdg/xpra.
    There's a ~/.xdg/xpra/2/socket with a recent timestamp. There's nothing
    relevant in /tmp on the server or the client.

    Clearly related is this, when I try to stop xpra on the server:

    /$ xpra stop
    xpra initialization error:
    cannot find any live servers to connect to/
    /
    /
    /$ ps -ef | grep xpra
    user 2544 1 0 09:58 ? 00:00:01 /usr/bin/python3.11
    /bin/xpra start :2 --st.../
    Hmm ... the UID cannot say "user" unless you created the username as "user"?


    It was anonymized.

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