[pve-devel] [PATCH v2 ha-manager] ha-simulator: add xauth dependency
Thomas Lamprecht
t.lamprecht at proxmox.com
Wed Feb 10 08:29:32 CET 2021
On 09.02.21 19:21, Dietmar Maurer wrote:
> On 09.02.21 16:45, Aaron Lauterer wrote:
>> When installing the ha-simulator on a PVE node to start it via ssh with
>> x11 forwarding, the xauth package helps to avoid `Unable to init server:
>> Could not connect: Connection refused` errors.
>
> This is true for anything. X11 forwarding simply works that way. So I am quite unsure if we should add xauth here...> > Or is this a common practice (I am unaware of)?
Not really, but there are not much programs which are primarily run over
SSH forwarding I know either.
If one really wants an active warning one could do a check like:
defined($ENV{'SSH_CONNECTION'}) && !(-x /usr/bin/xauth || -x /bin/xauth)
A bit crude but could work, and could be used to print out a early warning.
More information about the pve-devel
mailing list