SSH X11転送が機能しない:エラー:ディスプレイを開けません::5

SSH X11転送が機能しない:エラー:ディスプレイを開けません::5

SSH経由のX11転送を使用して、マイワークステーション(Windows PC)をリモートPC(CentOS Linuxバージョン7.5.1804)に接続しました。 SSH接続は正常に機能しますが、Firefoxまたは他のGUIを開こうとすると、次のエラーメッセージが表示されますError: cannot open display: :5。また、/etc/ssh/sshd_configファイルでX11Forwardingが有効になっていることを確認しましたが、有効になりました。 MobaXtermを使用してssh接続を確立していますが、パテを試してもssh(ssh -Y user@rempte-adress)を開いても同じ結果になります。echo $DISPLAYディスプレイ:5.ここで何が起こっているのか知っている人はいますか?

編集する

Xサーバーを起動しようとすると、startx次のエラーメッセージが表示されます。

xauth:  file /home/glock/.serverauth.23745 does not exist

(EE)
Fatal server error:
(EE) PAM authentication failed, cannot start X server.
        Perhaps you do not have console ownership?
(EE)
(EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
(EE)
^Cxinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: unexpected signal 2
Couldn't get a file descriptor referring to the console

ベストアンサー1

おすすめ記事