Skip to content

Instantly share code, notes, and snippets.

@ondras
Created March 15, 2018 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ondras/404e08b460d4f44be4ada6f45715e13b to your computer and use it in GitHub Desktop.
Save ondras/404e08b460d4f44be4ada6f45715e13b to your computer and use it in GitHub Desktop.
DBUS forwarding
# sshd_config (remote)
StreamLocalBindUnlink yes
# ssh_config (local)
RemoteForward /tmp/dbus /run/user/1000/bus
# .bashrc (remote)
export DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus
# /usr/share/dbus-1/session.conf (local)
<auth>ANONYMOUS</auth>
<allow_anonymous />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment