ユーザ用ツール

サイト用ツール


ssh

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン両方とも次のリビジョン
ssh [2020/11/16 16:54] nabezossh [2020/11/16 20:13] – [ssh多段] nabezo
行 38: 行 38:
 ssh -l <host1id>  -L <localport>:<host2>:22 <host1> ssh -l <host1id>  -L <localport>:<host2>:22 <host1>
 ssh -l <host2id> -p <localport> localhost ssh -l <host2id> -p <localport> localhost
 +
 +
 +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