Skip to content

Instantly share code, notes, and snippets.

@hxtree
Created December 5, 2019 16:14
Show Gist options
  • Select an option

  • Save hxtree/8b2ec8bbc9b97ff01b0f2475dfef9b82 to your computer and use it in GitHub Desktop.

Select an option

Save hxtree/8b2ec8bbc9b97ff01b0f2475dfef9b82 to your computer and use it in GitHub Desktop.
Ubuntu Enable XSession via SSH
touch /home/test/.Xauthority
apt install x11-apps
AllowUsers test
PasswordAuthentication yes
ChallengeResponseAuthentication no
UsePAM yes
X11Forwarding yes
X11UseLocalhost yes
Banner none
PrintMotd no
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment