【问题标题】:launching SAS Management Console from a mac over SSH with X11使用 X11 通过 SSH 从 Mac 启动 SAS 管理控制台
【发布时间】:2017-04-01 03:21:35
【问题描述】:

我在以下位置有一个 SAS 管理控制台的远程实例:

/pub/sas/SASManagementConsole/9.4/sasmc_console

我希望能够将其作为 GUI 界面启动。我尝试了以下方法(在 XQuartz 中):

export DISPLAY=:0
ssh -x myuser@app.myserver.com
cd /pub/sas/SASManagementConsole/9.4
./sasmc_console

这会返回:

Exception in thread "main" java.lang.InternalError: Can't connect to X11 
window server using ':0' as the value of the DISPLAY variable.

我的显示变量的值应该是多少?

【问题讨论】:

    标签: macos unix sas x11


    【解决方案1】:

    doh.. 所以看来我应该使用大写的 X,如下所示:

    ssh -X myuser@app.myserver.com
    

    但在窗口正常工作之前,我还必须更新其他内容。首先,在以下文件中:

    /private/etc/ssh_config
    

    我更改了以下值:

    #   ForwardX11 no
    #   ForwardX11Trusted no
    

    到:

    #   ForwardX11 yes
    #   ForwardX11Trusted yes
    

    我也跑了:

    rm /tmp/.X11-unix/X0
    

    然后重启机器……

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多