ユーザ用ツール

サイト用ツール


public:win11_wsl2_ssh_en

差分

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

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
public:win11_wsl2_ssh_en [2024/03/18 10:41] hirata.nanakopublic:win11_wsl2_ssh_en [2024/03/18 11:12] (現在) – [Generate an SSH Key Pair] hirata.nanako
行 12: 行 12:
 ===== Command install ===== ===== Command install =====
 ==== Check OS version ==== ==== Check OS version ====
-Start PowerShell or Command Prompt by selecting "Run as administrator". PowerShell or Command Prompt can also be opened in Windows Terminal. The command to check the OS version is as follows:+Start PowerShell or Command Prompt by selecting "Run as administrator". PowerShell or Command Prompt can also be opened in Windows Terminal((Terminal available by default in Windwos 11. Tabs can be used and it is easy to customize. ([[https://learn.microsoft.com/en-us/windows/terminal/|What is Windows Terminal?]] ) )). The command to check the OS version is as follows:
  
 <code> <code>
行 96: 行 96:
 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 +Enter passphrase (empty for no passphrase):       #Enter passphrase 
-Enter same passphrase again:   #Enter passphrase+Enter same passphrase again:                      #Enter passphrase
 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
行 124: 行 124:
 Register the created private key with ssh-agent.  (After # are comments) Register the created private key with ssh-agent.  (After # are comments)
 <code> <code>
-username@localhost:~$ eval $(ssh-agent) # Start ssh-agent+username@localhost:~$ eval $(ssh-agent)                      # Start ssh-agent
 Agent pid 658 Agent pid 658
-username@localhost:~$ ssh-add ~/.ssh/id_ecdsa # Register private key +username@localhost:~$ ssh-add ~/.ssh/id_ecdsa                # Register private key 
-Enter passphrase for /home/username/.ssh/id_ecdsa: # pass phrase+Enter passphrase for /home/username/.ssh/id_ecdsa:           # pass phrase
 Identity added: /home/username/.ssh/id_ecdsa (username@Win11) Identity added: /home/username/.ssh/id_ecdsa (username@Win11)
 </code> </code>
public/win11_wsl2_ssh_en.1710726105.txt.gz · 最終更新: 2024/03/18 10:41 by hirata.nanako

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki