ssh
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
ssh [2020/11/16 20:13] – [ssh多段] nabezo | ssh [2021/06/06 22:34] (現在) – nabezo | ||
---|---|---|---|
行 32: | 行 32: | ||
http:// | http:// | ||
- | localpc→host1→host2 | + | localpc → host1 → host2 |
転送 localhost:< | 転送 localhost:< | ||
- | ssh -l < | + | |
- | ssh -l < | + | ssh -l < |
- | + | == 多段接続 == | |
- | client -> serverA -> serverBへつなぐ場合 | + | ssh host2_def |
- | ssh serverB | + | |
- | 以下の設定をおこなう | + | Host host1_def |
- | Host serverA | + | HostName |
- | HostName | + | User host1のユーザー名 |
- | User サーバAのユーザー名 | + | Port host1のポート番号 |
- | Port サーバAのポート番号 | + | IdentityFile |
- | IdentityFile | + | Host host2_def |
- | Host serverB | + | HostName |
- | HostName | + | User host2のユーザー名 |
- | User サーバBのユーザー名 | + | Port host2のポート番号 |
- | Port サーバBのポート番号 | + | IdentityFile |
- | IdentityFile | + | ProxyCommand ssh -W %h:%p host1_def |
- | ProxyCommand ssh -W %h:%p serverA | + | # |
+ | ===== オプション ===== | ||
+ | N ポート転送を行う | ||
+ | -f バックグラウンドに移行する | ||
+ | -L 転送するポート: | ||
=====WindowsのSSHクライアント形式==== | =====WindowsのSSHクライアント形式==== |
ssh.1605525219.txt.gz · 最終更新: 2020/11/16 20:13 by nabezo