Download raw body.
[new/wip] wayland/waypipe for ssh -X-like forwarding
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)
[new/wip] wayland/waypipe for ssh -X-like forwarding