1
0

More than 1 year has passed since last update.

SSH の X, Y オプションと 「~/.ssh/config」 の   ForwardX11, ForwardX11Trusted の関係について

Last updated at Posted at 2022-12-14

opensshのsshコマンドについて

ssh -X  ... X11転送を有効にする
ssh -Y  ... 信頼されたX11転送(Trusted X11)を有効にする

です。次に~/.ssh/configでの設定との対応関係を見ていきます。

ForwardX11 のみ yes

~/.ssh/config
ForwardX11 yes
ForwardX11Trusted no

だと
ssh Host == ssh -X Host != ssh -Y Host になります。
ここでHost~/.ssh/configHostの欄に指定した接続名のことです。

ForwardX11Trusted のみ yes

~/.ssh/config
ForwardX11 no
ForwardX11Trusted yes

だと
ssh Host != ssh -Y Host になります。ここが ポイント です。ForwardX11Trustedはあくまでx11転送を有効にしている場合に、その転送された接続がtrustedな接続になるということを意味します。なのでForwardX11Trusted=yesとしただけではx11転送は行うことができません。
この設定の場合、ssh -X Host == ssh -Y Host となります。



以上になります、読んでいただきありがとうございました!! 間違いやご指摘等ありましたら、ぜひぜひコメントお願いいたします:bow_tone1:


参考資料

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0