ssh
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン | 次のリビジョン両方とも次のリビジョン | ||
ssh [2020/11/16 16:54] – nabezo | ssh [2020/11/16 20:13] – [ssh多段] nabezo | ||
---|---|---|---|
行 38: | 行 38: | ||
ssh -l < | ssh -l < | ||
ssh -l < | ssh -l < | ||
+ | |||
+ | |||
+ | client -> serverA -> serverBへつなぐ場合 | ||
+ | ssh serverB | ||
+ | 以下の設定をおこなう | ||
+ | Host serverA | ||
+ | HostName サーバAのIP(ホスト名) | ||
+ | User サーバAのユーザー名 | ||
+ | Port サーバAのポート番号 | ||
+ | IdentityFile サーバAへの接続に使う鍵 | ||
+ | Host serverB | ||
+ | HostName サーバBのIP(ホスト名) | ||
+ | User サーバBのユーザー名 | ||
+ | Port サーバBのポート番号 | ||
+ | IdentityFile サーバBへの接続に使う鍵 | ||
+ | ProxyCommand ssh -W %h:%p serverA | ||
=====WindowsのSSHクライアント形式==== | =====WindowsのSSHクライアント形式==== |
ssh.txt · 最終更新: 2021/06/06 22:34 by nabezo