CARVIEW |
Select Language
HTTP/2 200
date: Wed, 30 Jul 2025 21:57:12 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"9b6dc0c9a450eb722ab33742f297bed3"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=1WXOYQrWgEUlpIVQWLtuajBKdcQ0nGRb4%2Bim5GqNeflykTDt70vN7yTRKquq2xaX9YaO0%2FCdKgQ%2BnsD45ilfYVthiInrqjz%2Bm5AU%2B2xky0neDGy3y%2FftnvVJvUcUNhYuhic9mykO4jDgJf873AXz3CBNbTk5PV%2BIdkWnKTZH6iYj76BMB938h2T0Jj5hi9PCAV%2By8rujkl%2F695t7HApL%2BNvlo189CVVh%2BWVgv75n%2BDaYmPyVjsYA8VgnJBzrmeYaGvUNz3rd%2BiHTZNdZEHx6Dw%3D%3D--RNKb%2FEXSNRTc9lTT--6Cc8%2B95tARmMtjsdx5wG0g%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.7454349.1753912632; Path=/; Domain=github.com; Expires=Thu, 30 Jul 2026 21:57:12 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 30 Jul 2026 21:57:12 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: A2E6:33DAA7:6AA3E:9A434:688A9538
Remote access with SSH · mviereck/x11docker Wiki · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 386
Remote access with SSH
mviereck edited this page Feb 12, 2022
·
12 revisions
You can run x11docker on remote servers with ssh -X
like a regular X application. Example:
# Replace localhost with address of your desired server
ssh -X localhost -- x11docker x11docker/lxde lxterminal
If your server has e.g. Xephyr
or nxagent
installed, you can run desktop environments like a VNC session:
ssh -X localhost -- x11docker --desktop x11docker/lxde
It is recommended to provide a nested X server like nxagent
on the remote machine to allow x11docker circumventing X security leaks.
SSH setup with xpra allows detaching and reattaching to a remote session.
Example for an SSH setup with xpra:
- Server setup:
#! /bin/bash
# Run invisible Xvfb X server with display number :30.
# Catches X environment with 'read < <(...)' construct.
# Docker container runs on invisible Xvfb display.
# (for X server options other than --xvfb or --xdummy also add options --showenv and --xtest).
read Xenv < <(x11docker --xvfb --printenv --display=30 x11docker/lxde pcmanfm)
# Output of new X environment, just for info
# (You can drop `--display=30` in command above if you provide DISPLAY
# from this output to following xpra commands instead of :30)
echo $Xenv
# Start xpra server with new environment variables.
# (Replace "start" with "start-desktop" to forward a desktop environment)
env $Xenv xpra start :30 --use-display --start-via-proxy=no --daemon=no
- Client setup:
# Attach xpra client over SSH to xpra server.
# Replace SERVERIP with IP or host name of ssh server.
# You might need to specify a user name in the form USER@SERVERIP
xpra attach ssh://SERVERIP/30
You can detach the SSH connection and attach later again without terminating the container application:
xpra detach ssh://SERVERIP/30
You can stop xpra server without terminating x11docker:
xpra stop ssh://SERVERIP/30
A script entirely executed on client. (It will ask three times for ssh password, may be solved more nicely).
#! /bin/bash
HOSTNAME=localhost # Change to desired server address
IMAGECOMMAND="x11docker/lxde lxterminal" # Change to desired image name and command
# Runs x11docker on remote server. Reads new X environment variables from its output.
# (for X server options other than --xvfb or --xdummy add options --showenv --xtest).
read Xenv < <(ssh -f $HOSTNAME -- x11docker --xvfb --printenv $IMAGECOMMAND)
# extract DISPLAY from new X environment
Newdisplay=$(sh -c "export $Xenv ; echo \$DISPLAY")
# start remote xpra server
# (replace "xpra start" with "xpra start-desktop" for desktop environments)
ssh $HOSTNAME -- env $Xenv xpra start $Newdisplay --use-display --start-via-proxy=no
# start local xpra client
xpra attach ssh://$HOSTNAME/$Newdisplay
- If you have xpra version <2.4, don't try this on localhost due to an xpra memory bug.
- If your client does have a big display resolution or a multimonitor setup, xpra may scale up the size of forwarded windows. Check output of
xrandr | grep current
or xpra client output for your client display resolution. It may be e.g.2084x768
. Add--size 2048x768
tox11docker --xvfb [...]
command to get a matching server display size.
Clone this wiki locally
You can’t perform that action at this time.