hns - 日記自動生成システム - Version 2.19.9

先月 2010年05月 来月
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2010年05月05日(水) 旧暦 [n年日記] [更新:"2010/05/05 17:27:53"]

#1 [comp] ssh -Y を ~/.ssh/ssh_config に設定

4/28 の日記 (同 3/23) に、ssh -Y 等のことに関連して、
  • ssh 元 (client) の /etc/ssh/ssh_config に次のように書いておいて
    47  # If you use xorg from pkgsrc then uncomment the following line.
    48      XAuthLocation /usr/pkg/bin/xauth
    
  • ssh -Y hostname を使っている
と書いた。ここから二段階進む話。 これらは ~/.ssh/config に設定が可能で、例えば、
ForwardX11Trusted yes
ForwardX11 yes
XAuthLocation /usr/pkg/bin/xauth
と書いておけば、/etc/ssh/ssh_config は変更する必要がないし、 -Y も付ける必要がなく、単に
ssh hostname
で行けることが分った。 (server 側の /etc/ssh/sshd_config には次の行が必要)
X11Forwarding yes
ただし、いつもこのように ~/.ssh/config に書いておくのが安全かどうかは良く考えていない。
この ~/.ssh/config の書き方としては man sshd_config が参考になるけれど、 Match 文は書けないようだ。

Comments related this article

Re: ssh -Y を ~/.ssh/ssh_config に設定 by soda    2010/05/05 18:52
対象サーバのroot権限があれば、画面もキー入力も盗むことができますので、安全じゃあ...
Re: ssh -Y を ~/.ssh/ssh_config に設定 by makoto fujiwara    2010/05/10 10:58
反応ありがとうございます。 「対象サーバの root 権限がある」 のはかなり限られると...
Re: ssh -Y を ~/.ssh/ssh_config に設定 by soda    2010/05/10 11:48
まあ家のサーバとか、会社の Intranet 内のサーバであれば、(運用にもよりますが) OK ...


最近の日記
2024年05月08日
comparison on ./buildsh tools
2024年05月06日
py-setuptools (python 3.11.9)
make release took 1 hours and 10 min
qemu invocation for 10.99.10
2024年05月05日
Windows 10 version
serial connection
bc bench
2024年05月04日
Trial on 10.99.10
another version (later trial) to succeed
2024年04月29日
dkim
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)