public:win11_wsl2_ssh_en
差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
| public:win11_wsl2_ssh_en [2024/03/18 10:00] – [Creating an ssh key pair] hirata.nanako | public:win11_wsl2_ssh_en [2024/03/18 11:12] (現在) – [Generate an SSH Key Pair] hirata.nanako | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | ====== | + | ====== |
| + | 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:// | [[https:// | ||
| 行 11: | 行 12: | ||
| ===== Command install ===== | ===== Command install ===== | ||
| ==== Check OS version ==== | ==== Check OS version ==== | ||
| - | Start PowerShell or Command Prompt by selecting "Run as administrator" | + | Start PowerShell or Command Prompt by selecting "Run as administrator" |
| < | < | ||
| 行 23: | 行 24: | ||
| PS C: | PS C: | ||
| - | インストールできる有効なディストリビューションの一覧を次に示します。 | + | The following is a list of valid distributions that can be installed. |
| - | ' | + | Install using ' |
| NAME | NAME | ||
| 行 95: | 行 96: | ||
| Enter file in which to save the key (/ | Enter file in which to save the key (/ | ||
| Created directory '/ | Created directory '/ | ||
| - | 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 / | Your identification has been saved in / | ||
| Your public key has been saved in / | Your public key has been saved in / | ||
| 行 115: | 行 116: | ||
| </ | </ | ||
| - | ===== 鍵の申請 | + | ===== Apply for a key ===== |
| - | 作成した公開鍵 | + | Please apply for registration of the created public key id_ecdsa.pub. \\ |
| - | [[https:// | + | [[https:// |
| - | [[http:// | + | [[http:// |
| - | ===== 鍵の登録 | + | ===== Add your SSH key to the ssh-agent |
| - | 作成した鍵を | + | Register the created private key with ssh-agent. |
| < | < | ||
| - | username@localhost: | + | username@localhost: |
| Agent pid 658 | Agent pid 658 | ||
| - | username@localhost: | + | username@localhost: |
| - | Enter passphrase for / | + | Enter passphrase for / |
| Identity added: / | Identity added: / | ||
| </ | </ | ||
| - | 登録されているかは下記コマンドで確認できる. | + | You can check if it is registered with the following command. |
| < | < | ||
| username@localhost: | username@localhost: | ||
| 行 136: | 行 137: | ||
| - | ===== ssh 接続 | + | ===== SSH Connection===== |
| - | 下記コマンドでssh接続する.\\ | + | Enter the following:\\ |
| - | -Aオプションは, | + | |
| - | -Xオプションは X11のポートフォワーディングを有効にする(リモートマシンのXアプリケーションが実行できるようになる) | + | |
| < | < | ||
| - | username@localhost: | + | username@localhost: |
| - | The authenticity of host '踏み台サーバ' can't be established. | + | The authenticity of host 'Jump_Server' can't be established. |
| ED25519 key fingerprint is SHA256: | ED25519 key fingerprint is SHA256: | ||
| This key is not known by any other names | This key is not known by any other names | ||
| Are you sure you want to continue connecting (yes/ | Are you sure you want to continue connecting (yes/ | ||
| - | Warning: Permanently added '踏み台サーバ' (ED25519) to the list of known hosts. | + | Warning: Permanently added 'Jump_Server' (ED25519) to the list of known hosts. |
| </ | </ | ||
| - | 踏み台サーバからさらに目的のサーバにssh接続する。 | + | option -A: Enables forwarding of connections from an authentication agent such as ssh-agent. |
| - | + | option -X: Enables | |
| - | ==== X11のポートフォワーディングについて ==== | + | After connecting to the Jump_Server, |
| - | WSL2 では、デフォルトで GUI 表示ができる. X サーバを新たにインストールする必要はない. \\ | + | |
| - | [[https:// | + | |
| + | ==== About x11 forwarding ==== | ||
| + | WSL 2 enables Linux GUI applications to feel native and natural to use on Windows. There is no need to install a new X server.\\ | ||
| + | [[https:// | ||
| - | ===== メモ ===== | ||
| - | * [[public: | ||
| ---- | ---- | ||
| * [[public: | * [[public: | ||
public/win11_wsl2_ssh_en.1710723633.txt.gz · 最終更新: by hirata.nanako
