ssh
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン最新のリビジョン両方とも次のリビジョン | ||
ssh [2020/11/16 16:50] – nabezo | ssh [2020/11/16 22:32] – nabezo | ||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== ssh設定方法 | + | ======sshとは====== |
+ | port:22 | ||
+ | |||
+ | local> | ||
+ | |||
+ | local> | ||
+ | |||
+ | ===== ssh設定方法 | ||
ホームディレクトにて | ホームディレクトにて | ||
行 8: | 行 16: | ||
=====公開鍵認証===== | =====公開鍵認証===== | ||
+ | linux上での設定方法 | ||
==== 鍵の生成 ==== | ==== 鍵の生成 ==== | ||
行 23: | 行 32: | ||
http:// | http:// | ||
- | localpc→host1→host2 | + | localpc → host1 → host2 |
転送 localhost:< | 転送 localhost:< | ||
- | ssh -l < | + | |
- | ssh -l < | + | ssh -l < |
- | + | ||
- | =====sshとは===== | + | |
- | + | ||
- | local> | + | |
- | local> | + | == 多段接続 == |
+ | ssh host2_def | ||
+ | # | ||
+ | Host host1_def | ||
+ | HostName host1 | ||
+ | User host1のユーザー名 | ||
+ | Port host1のポート番号 | ||
+ | IdentityFile host1への接続に使う鍵 | ||
+ | Host host2_def | ||
+ | HostName host2 | ||
+ | User host2のユーザー名 | ||
+ | Port host2のポート番号 | ||
+ | IdentityFile host2への接続に使う鍵 | ||
+ | ProxyCommand ssh -W %h:%p host1_def | ||
+ | # | ||
=====WindowsのSSHクライアント形式==== | =====WindowsのSSHクライアント形式==== |
ssh.txt · 最終更新: 2021/06/06 22:34 by nabezo