ユーザ用ツール

サイト用ツール


ssh

差分

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

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
次のリビジョン両方とも次のリビジョン
ssh [2020/11/16 16:52] nabezossh [2020/11/16 20:13] – [ssh多段] nabezo
行 1: 行 1:
-====== ssh設定方法  ======+======sshとは====== 
 +  port:22 
 +   
 +  local>stdin → ssh → sshd<remote> 
 +   
 +  local>stdout ← ssh ← sshd<remote> 
 + 
 +===== ssh設定方法  ===== 
 ホームディレクトにて ホームディレクトにて
  
行 31: 行 39:
 ssh -l <host2id> -p <localport> localhost ssh -l <host2id> -p <localport> localhost
  
-=====sshとは===== 
- 
-    local>stdin → ssh → sshd<remote> 
  
-    local>stdout ← ssh ← sshd<remote>+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