Created
April 17, 2019 07:07
-
-
Save tuxarch/6349db90ab72a74c014a22c48e661f00 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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