ユーザ用ツール

サイト用ツール


public:win11_wsl2_ssh_en

差分

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

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
public:win11_wsl2_ssh_en [2024/03/18 10:35] – [Select and install a Linux distribution] hirata.nanakopublic:win11_wsl2_ssh_en [2024/03/18 11:12] (現在) – [Generate an SSH Key Pair] hirata.nanako
行 1: 行 1:
-====== WSL SSH In Windows 11 ====== +====== WSL2 SSH In Windows 11 ====== 
 +To access the server of the Space Environment Information Processing System via the Internet, you need to go through a login server (a Jump_Server). The login server is accessed by SSH public key authentication. 
 +In this article, we install Windows Subsystem for Linux 2 (WSL2) on Windows 11 and connect to the login server via SSH. 
 [[https://learn.microsoft.com/en-us/windows/wsl/install|How to install Linux on Windows with WSL (Microsoft)]] [[https://learn.microsoft.com/en-us/windows/wsl/install|How to install Linux on Windows with WSL (Microsoft)]]
  
行 11: 行 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>
行 95: 行 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
行 123: 行 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.1710725739.txt.gz · 最終更新: 2024/03/18 10:35 by hirata.nanako

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki