Index | Thread | Search

From:
Landry Breuil <landry@openbsd.org>
Subject:
Re: [new/wip] wayland/waypipe for ssh -X-like forwarding
To:
Theo de Raadt <deraadt@openbsd.org>
Cc:
Matthieu Herrb <matthieu@openbsd.org>, ports@openbsd.org
Date:
Wed, 12 Nov 2025 16:18:37 +0100

Download raw body.

Thread
Le Wed, Nov 12, 2025 at 04:03:16PM +0100, Landry Breuil a écrit :
> Le Wed, Nov 12, 2025 at 07:39:01AM -0700, Theo de Raadt a écrit :
> > > - add XDG_RUNTIME_DIR=/tmp/run/user/<uid> to ~/.ssh/environment
> > 
> > That is so incredibly user hostile.  First of all, it is a uid,
> > and secondly this now applies to all non-interactive sessions also.
> > Just plain yuck.
> 
> then i guess the alternative would be to:
> - advertise 'waypipe ssh target env XDG_RUNTIME_DIR=xxx command'
> - add a section in ~/.ssh/config with SendEnv XDG_RUNTIME_DIR for the
>   given targets ?

i've given this a try, and waypipe works transparently with:

- in .ssh/config

Host localhost
        SendEnv XDG_RUNTIME_DIR

- in /etc/ssh/sshd_config:

PermitUserEnvironment XDG_RUNTIME_DIR
AcceptEnv XDG_RUNTIME_DIR

(of course those two could be in a Match block)