Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/image/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从macOS 10.15.4到OracleLinux7的X11失败_Oracle_Macos_X11_Oraclelinux - Fatal编程技术网

从macOS 10.15.4到OracleLinux7的X11失败

从macOS 10.15.4到OracleLinux7的X11失败,oracle,macos,x11,oraclelinux,Oracle,Macos,X11,Oraclelinux,我正在尝试将x11从mac转发到Oracle安装的OracleLinux7设备。以下是我收到的命令和错误: ssh -Y user@foo.bar.com debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0 Warning: No xauth data; using fake authentication data for X11 forwarding. debug1: Requestin

我正在尝试将x11从mac转发到Oracle安装的OracleLinux7设备。以下是我收到的命令和错误:

ssh -Y user@foo.bar.com
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
Warning: No xauth data; using fake authentication data for X11 forwarding.
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug1: Sending env LC_TERMINAL_VERSION = 3.3.9
debug1: Sending env LC_TERMINAL = iTerm2
debug1: Remote: X11 forwarding disabled in user configuration file.
X11 forwarding request failed on channel 0
尝试运行Xyes或xclock时

[user@foo ~]$ xeyes
Error: Can't open display:
[user@foo ~]$ echo $DISPLAY

[user@foo ~]$ 
以下是mac和linux机箱的配置:

OL7: /etc/sshd/sshd\u配置

# Use most defaults for sshd configuration.
Subsystem sftp internal-sftp
ClientAliveInterval 180
UseDNS no
UsePAM yes
PrintLastLog no # handled by PAM
PrintMotd no # handled by PAM
TrustedUserCAKeys /etc/ssh/trustedusercakeys.pem
PasswordAuthentication no
X11Forwarding yes
X11UseLocalhost yes
ChallengeResponseAuthentication no
Mac: 使用xQuartz

~/.ssh/config
Host *
  ForwardX11 yes
为解决以下问题而采取的步骤: linux机器上的xauth+返回

[user@foo ~]$ xauth
xauth:  file /home/adahlman/.Xauthority does not exist
Using authority file /home/adahlman/.Xauthority
xauth> exit

[user@foo ~]$ xauth +
xauth:  file /home/user/.Xauthority does not exist
xauth: (argv):1:  unknown command "+"

我尝试将各种X11前进选项更改为是和否,但仍然没有骰子。有什么想法吗?这可能是PAM问题吗?

你好,Alex,欢迎来到StackOverflow。我是第一篇文章的评论员,我有以下建议。你能改进你的第一句话,使它包含一个动词吗!例如:“我正在尝试”或其他东西……让它与macOS 10.15.5+XQuartz 2.8.11、oraclelinux 7.8+OpenSSL 1.0.2k-fips一起工作。配置似乎与您的相似。。。
[user@foo ~]$ xauth
xauth:  file /home/adahlman/.Xauthority does not exist
Using authority file /home/adahlman/.Xauthority
xauth> exit

[user@foo ~]$ xauth +
xauth:  file /home/user/.Xauthority does not exist
xauth: (argv):1:  unknown command "+"