public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] xpra permissions
@ 2025-01-12  9:08 n952162
  2025-01-12 10:07 ` Michael
  0 siblings, 1 reply; 5+ messages in thread
From: n952162 @ 2025-01-12  9:08 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 353 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 640 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] xpra permissions
  2025-01-12  9:08 [gentoo-user] xpra permissions n952162
@ 2025-01-12 10:07 ` Michael
  2025-01-12 10:41   ` n952162
  0 siblings, 1 reply; 5+ messages in thread
From: Michael @ 2025-01-12 10:07 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 535 bytes --]

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?

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] xpra permissions
  2025-01-12 10:07 ` Michael
@ 2025-01-12 10:41   ` n952162
  2025-01-12 12:22     ` Michael
  0 siblings, 1 reply; 5+ messages in thread
From: n952162 @ 2025-01-12 10:41 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1853 bytes --]

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?

[-- Attachment #2: Type: text/html, Size: 3033 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] xpra permissions
  2025-01-12 10:41   ` n952162
@ 2025-01-12 12:22     ` Michael
  2025-01-12 12:49       ` n952162
  0 siblings, 1 reply; 5+ messages in thread
From: Michael @ 2025-01-12 12:22 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1868 bytes --]

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"?

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] xpra permissions
  2025-01-12 12:22     ` Michael
@ 2025-01-12 12:49       ` n952162
  0 siblings, 0 replies; 5+ messages in thread
From: n952162 @ 2025-01-12 12:49 UTC (permalink / raw
  To: gentoo-user

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.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-01-12 12:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-12  9:08 [gentoo-user] xpra permissions n952162
2025-01-12 10:07 ` Michael
2025-01-12 10:41   ` n952162
2025-01-12 12:22     ` Michael
2025-01-12 12:49       ` n952162

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox