atinfinity / l4t-ros2-docker

This is a Dockerfile to make ROS 2 environment on Jetson device.
Apache License 2.0
34 stars 5 forks source link

X.11 is lacking xauth for ssh connections #5

Open brianlmerritt opened 10 months ago

brianlmerritt commented 10 months ago

DISPLAY=$DISPLAY runs fine when connected via desktop or remote desktop, but for ssh connections with -X forwarding there is an error

MoTTY X11 proxy: Unsupported authorisation protocol
Error: Can't open display: localhost:10.0

The Jetson Nano host runs X11 fine, but not from the container, and xauth is not installed in the container.

On the host I can run xauth list and get the relevant cookie

sudo apt install xauth in the container allows me to set the cookie

xauth add localhost:10.0 . [cookie_value]

Any chance to add xauth? Or I can send a PR if you prefer.

atinfinity commented 10 months ago

@brianlmerritt Thank you for your report! I'll try to reproduce this problem.

brianlmerritt commented 10 months ago

The issue may be running ssh via VSCODE Remote Explorer - I will investigate further :D