チャネル 0 で X11 転送要求が失敗しました。

チャネル 0 で X11 転送要求が失敗しました。

$ ssh -Xvv remote_host出力

....
debug1: channel 0: new [client-session]
debug2: channel 0: send open
debug1: Requesting [email protected]
debug1: Entering interactive session.
debug1: pledge: exec
debug1: client_input_global_request: rtype [email protected] want_reply 0
debug1: Remote: /home/user/.ssh/authorized_keys:8: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug1: Remote: /home/user/.ssh/authorized_keys:8: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug2: channel_input_open_confirmation: channel 0: callback start
debug2: x11_get_proto: /usr/bin/xauth  list unix:16.0 2>/dev/null
debug1: Requesting X11 forwarding with authentication spoofing.
debug2: channel 0: request x11-req confirm 1
debug2: fd 3 setting TCP_NODELAY
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 1
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug2: channel 0: request env confirm 0
debug2: channel 0: request shell confirm 1
debug2: channel_input_open_confirmation: channel 0: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel_input_status_confirm: type 100 id 0
X11 forwarding request failed on channel 0
debug2: channel_input_status_confirm: type 99 id 0
debug2: PTY allocation request accepted on channel 0
debug2: channel 0: rcvd adjust 2097152
debug2: channel_input_status_confirm: type 99 id 0
debug2: shell request accepted on channel 0

それも試しました-Y。動作しません。

サーバー側でX11転送が許可されることを確認しました。$grep X11 /etc/ssh/sshd_configジュン

X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes

他の関連投稿を検索しましたが、X11 forwarding request failed on channel 0役に立ちませんでした。

ベストアンサー1

Devuan(systemdのないDebian支店)でも同様の問題がありました。

私が見つけたArch Wikiのソリューション

/etc/ssh/sshd_configサーバー側で編集し、以下を設定します。

AddressFamily inet

デフォルトはですが、AddressFamily anyinet(ipv4)ソケットを提供していないようです。

私のシステムの/var/log/auth.logで確認しました。

sshd[9184]: error: Failed to allocate internet-domain X11 display socket.

上記の変更の後、sshd_configX11service ssh restartの配信は私にとって効果的でした。

おすすめ記事