ユーザ用ツール

サイト用ツール


public:win11_wsl2_ssh

差分

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

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
public:win11_wsl2_ssh [2024/03/05 10:42] – [keychain] hirata.nanakopublic:win11_wsl2_ssh [2024/03/18 11:13] (現在) – [鍵の登録] hirata.nanako
行 92: 行 92:
 Enter file in which to save the key (/home/username/.ssh/id_ecdsa): Enter file in which to save the key (/home/username/.ssh/id_ecdsa):
 Created directory '/home/username/.ssh'. Created directory '/home/username/.ssh'.
-Enter passphrase (empty for no passphrase):   # パスフレーズ入力 +Enter passphrase (empty for no passphrase):     # パスフレーズ入力 
-Enter same passphrase again:   # パスフレーズ入力+Enter same passphrase again:                    # パスフレーズ入力
 Your identification has been saved in /home/username/.ssh/id_ecdsa Your identification has been saved in /home/username/.ssh/id_ecdsa
 Your public key has been saved in /home/username/.ssh/id_ecdsa.pub Your public key has been saved in /home/username/.ssh/id_ecdsa.pub
行 120: 行 120:
 作成した鍵を ssh-agent に登録する. (#以降はコメント) 作成した鍵を ssh-agent に登録する. (#以降はコメント)
 <code> <code>
-username@localhost:~$ eval $(ssh-agent) # ssh-agent を起動する+username@localhost:~$ eval $(ssh-agent)             # ssh-agent を起動する
 Agent pid 658 Agent pid 658
-username@localhost:~$ ssh-add ~/.ssh/id_ecdsa # 鍵を登録 +username@localhost:~$ ssh-add ~/.ssh/id_ecdsa       # 鍵を登録 
-Enter passphrase for /home/username/.ssh/id_ecdsa: # パスフレーズ+Enter passphrase for /home/username/.ssh/id_ecdsa:  # パスフレーズ
 Identity added: /home/username/.ssh/id_ecdsa (username@Win11) Identity added: /home/username/.ssh/id_ecdsa (username@Win11)
 </code> </code>
行 153: 行 153:
  
  
-===== ssh接続設定のファイル ===== 
-下記の設定をファイルに保存し ($HOME/.ssh/config), sshコマンドを省略できる.  
- 
-<file> 
-Host 踏み台 
-  ForwardAgent yes 
-  ForwardX11 yes 
-  ForwardX11Trusted yes 
-  User 踏み台username 
-  HostName 踏み台サーバ 
-</file> 
- 
-下記コマンドでssh接続できる.  
-<code> 
-username@localhost:~$  ssh 踏み台 
-</code> 
  
 ===== メモ ===== ===== メモ =====
public/win11_wsl2_ssh.1709602960.txt.gz · 最終更新: 2024/03/05 10:42 by hirata.nanako

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki