Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tuxarch/6349db90ab72a74c014a22c48e661f00 to your computer and use it in GitHub Desktop.
Save tuxarch/6349db90ab72a74c014a22c48e661f00 to your computer and use it in GitHub Desktop.
server: /etc/ssh/sshd_config
X11Forwarding yes
client: /etc/ssh/ssh_config
Host *
ForwardX11 yes
А если это не помогает, и в syslog'е "Failed to allocate internet-domain X11"
Значит sshd запутался в IPv6, и sshd надо запускать с ключом -4
server: /etc/sysconfig/sshd
SSHD_OPTS="-4"
После логина автоматически будет взводится переменная DISPLAY
ssh udalennyj.server
echo $DISPLAY
localhost:10.0
Чтобы X-приложения запускались после SU - смены пользователя
в файле /etc/pam.d/su
и в файле /etc/pam.d/su-l должна присутствовать строка:
session optional pam_xauth.so
подробности смотреть в:
man xauth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment