public:win10_openssh_en
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
public:win10_openssh_en [2022/07/06 12:03] – [Add your SSH key to the ssh-agent] hirata.nanako | public:win10_openssh_en [2022/07/06 14:14] (現在) – [File for ssh connection settings] hirata.nanako | ||
---|---|---|---|
行 3: | 行 3: | ||
^ ^Host Name^Login Name^ | ^ ^Host Name^Login Name^ | ||
- | |Server|Jump Server|Jump Server Username| | + | |Server|Jump_Server|Jump_Server_Username| |
- | |Client|Localhost|Local Username| | + | |Client|Localhost|Local_Username| |
- | ※[[: | + | |
===== Open PowerShell ===== | ===== Open PowerShell ===== | ||
Press Start and then press {{: | Press Start and then press {{: | ||
行 60: | 行 60: | ||
===== Apply for a key ===== | ===== Apply for a key ===== | ||
Please apply for registration of the created public key id_ecdsa.pub. \\ | Please apply for registration of the created public key id_ecdsa.pub. \\ | ||
- | [[https:// | + | [[https:// |
[[http:// | [[http:// | ||
行 66: | 行 66: | ||
{{: | {{: | ||
Use ssh-agent to avoid entering the passphrase for ssh connections and to avoid putting the private key on the steppingstone server. \\ | Use ssh-agent to avoid entering the passphrase for ssh connections and to avoid putting the private key on the steppingstone server. \\ | ||
- | Select Start > Administrative Tools > Services. Open the properties of the {{ : | + | Select Start > Administrative Tools > Services. Open the properties of the {{ : |
- | 続いて, 秘密鍵 | + | Next, register the private key id_ecdsa. |
< | < | ||
PS C:\> ssh-add ' | PS C:\> ssh-add ' | ||
- | Enter passphrase for C: | + | Enter passphrase for C: |
Identity added: C: | Identity added: C: | ||
</ | </ | ||
- | 登録した鍵は, | + | The registered key can be checked with " |
- | ===== SSH接続 | + | ===== SSH Connection |
- | 下記コマンドでssh接続する. -Aオプションは, | + | Enter the following: |
< | < | ||
- | PS C:\> ssh 踏み台username@踏み台サーバ | + | PS C:\> ssh Jump_Server_Username@Jump_Server |
- | The authenticity of host '踏み台サーバ | + | The authenticity of host 'Jump_Server |
ECDSA key fingerprint is SHA256: | ECDSA key fingerprint is SHA256: | ||
Are you sure you want to continue connecting (yes/ | Are you sure you want to continue connecting (yes/ | ||
- | Warning: Permanently added 踏み台サーバ, | + | Warning: Permanently added Jump_Server, |
</ | </ | ||
+ | option -A: Enables forwarding of connections from an authentication agent such as ssh-agent.\\ | ||
+ | After connecting to the Jump_Server, | ||
+ | ===== x11 forwarding ===== | ||
+ | X11 Forwarding is what gives you the ability to use X11 application window on your local host when connecting remotely. \\ | ||
+ | First, download and install VcXsrv Windows X Server. \\ | ||
+ | [[https:// | ||
- | ===== X転送 ===== | + | In the startup screen, proceed with the default settings, and in the final {{ : |
- | リモート接続時に X Window System (X11) を転送して, xアプリケーションウィンドウをローカルホストで利用する. | + | |
- | まず, VcXsrv Windows X Server をダウンロードし, | + | |
- | [[https:// | + | |
- | + | ||
- | 起動画面ではデフォルトで進み, 最後の{{ : | + | |
- | 設定ファイルをダブルクリックすることで, VcXsrv Windows X Server | + | By double-clicking the configuration file, VcXsrv Windows X Server |
- | " | + | Open Start > Windows |
- | 次に, 環境変数DISPLAYを設定する. VcXsrv Windows X Server | + | Next, set the DISPLAY |
{{ : | {{ : | ||
行 104: | 行 105: | ||
PS C:\ [System.Environment]:: | PS C:\ [System.Environment]:: | ||
</ | </ | ||
- | PS を再起動し, | + | Restart |
< | < | ||
PS C:\ $env: | PS C:\ $env: | ||
行 110: | 行 111: | ||
</ | </ | ||
- | x転送を許可するオプションを追加し, | + | Add the option to allow X-fowarding and make a ssh connection. Start the X11 application and check if the transfer is successful. |
< | < | ||
- | PS C:\ ssh -AXY 踏み台username@踏み台サーバ | + | PS C:\ ssh -AXY Jump_Server_Username@Jump_Server |
</ | </ | ||
- | ===== ssh接続設定のファイル | + | ===== File for ssh connection settings |
- | 以上の設定をファイルに保存し | + | By saving the ssh configuration to a file (C: |
- | * IdentityFile は秘密鍵を ssh-agent に登録するため必要ないが, | + | |
< | < | ||
- | Host 踏み台 | + | Host Jump_Server |
ForwardAgent yes | ForwardAgent yes | ||
ForwardX11 yes | ForwardX11 yes | ||
ForwardX11Trusted yes | ForwardX11Trusted yes | ||
- | User 踏み台username | + | User Jump_Server_Username |
- | HostName | + | HostName |
IdentityFile " | IdentityFile " | ||
</ | </ | ||
- | 下記コマンドでssh接続できる. | + | Connect to ssh with the following: |
< | < | ||
- | PS C:\ ssh 踏み台 | + | PS C:\ ssh Jump_Server |
</ | </ |
public/win10_openssh_en.1657076599.txt.gz · 最終更新: 2022/07/06 12:03 by hirata.nanako