ユーザ用ツール

サイト用ツール


public:win10_openssh_en

差分

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

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
public:win10_openssh_en [2022/07/06 13:24] – [SSH Connection] hirata.nanakopublic: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
-※[[:public:about_pdf|about PDF]]+
 ===== Open PowerShell ===== ===== Open PowerShell =====
 Press Start and then press  {{:public:win10_openssh:powershell.png?linkonly| “Windows PowerShell”}}. \\ Press Start and then press  {{:public:win10_openssh:powershell.png?linkonly| “Windows PowerShell”}}. \\
行 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://portal.isee.nagoya-u.ac.jp/iseeadm-bin/acc/skplatform.cgi|isee Jump Server account request]]+ [[https://portal.isee.nagoya-u.ac.jp/iseeadm-bin/acc/skplatform.cgi|Isee Jump_Server account request]]
  [[http://cidas.isee.nagoya-u.ac.jp/kyodo/regist.shtml.ja|CIDAS System account request]]  [[http://cidas.isee.nagoya-u.ac.jp/kyodo/regist.shtml.ja|CIDAS System account request]]
  
行 78: 行 78:
 Enter the following: Enter the following:
 <code> <code>
-PS C:\> ssh Jump Server Username@Jump Server -A +PS C:\> ssh Jump_Server_Username@Jump_Server -A 
-The authenticity of host 'Jump Server (***.***.***.***)' can't be established.+The authenticity of host 'Jump_Server (***.***.***.***)' can't be established.
 ECDSA key fingerprint is SHA256:UQwYcMTRGPdEDwQ7y4z5OS+j9PhFpavrKZ3W7jEuH1E. ECDSA key fingerprint is SHA256:UQwYcMTRGPdEDwQ7y4z5OS+j9PhFpavrKZ3W7jEuH1E.
 Are you sure you want to continue connecting (yes/no)?  # yes Are you sure you want to continue connecting (yes/no)?  # yes
-Warning: Permanently added Jump Server,***.***.***.***' (ECDSA) to the list of known hosts.+Warning: Permanently added Jump_Server,***.***.***.***' (ECDSA) to the list of known hosts.
  
 </code> </code>
 option -A: Enables forwarding of connections from an authentication agent such as ssh-agent.\\ option -A: Enables forwarding of connections from an authentication agent such as ssh-agent.\\
-After connecting to the Jump Server, you can use the same private key that you used at the first connection to connect to another server.  +After connecting to the Jump_Server, you can use the same private key that you used at the first connection to connect to another server.  
-===== X転送 ===== +===== x11 forwarding ===== 
-リモート接続時に X Window System (X11) を転送して, xアプリケーションウィンドウをローカルホストで利用する.  +X11 Forwarding is what gives you the ability to use  X11 application window on your local host when connecting remotely\\ 
-まず, VcXsrv Windows X Server をダウンロードし, インストールする. \\ +Firstdownload and install VcXsrv Windows X Server. \\ 
-[[https://sourceforge.net/projects/vcxsrv/|VcXsrv ダウンロード]]\\+[[https://sourceforge.net/projects/vcxsrv/|VcXsrv download]]\\
  
-起動画面ではデフォルトで進み最後の{{ :public:win10_openssh:fig7.png?linkonly |"finish configuration" 画面}}, "save configuration"を押し, 適当な場所に設定を保存する (設定ファイルのデフォルト名は config.xlaunch). \\+In the startup screenproceed with the default settings, and in the final {{ :public:win10_openssh:fig7.png?linkonly | "finish configuration" screen }}, press "save configuration" to save the settings in an appropriate location. The default name of the configuration file is "config.xlaunch". \\
  
-設定ファイルをダブルクリックすることで, VcXsrv Windows X Server が起動するようになるが自動起動させるために, スタートアップに登録する. \\ +By double-clicking the configuration file, VcXsrv Windows X Server will start. To make it start automaticallyregister it to the startup. \\ 
-"スタート" → "Windows システムツール"{{ :public:win10_openssh:fig9.png?linkonly |"ファイル名を指定して実行"}}, shell:startup と打ち, スタートアップのフォルダを開くさきほど保存した設定ファイル config.xlaunch をスタートアップフォルダに移動する. \\+Open Start > Windows system tools > {{ :public:win10_openssh:fig9.png?linkonly | Open Run Command }}, then press "shell:startup"Move the configuration file "config.xlaunch" saved earlier to the startup folder. \\
  
  
-次に環境変数DISPLAYを設定する. VcXsrv Windows X Server が起動しているとインジケーターにアイコンが表示されるがアイコンの上にマウスを乗せると "localhost:0.0 -1 clients" のように表示されるのでこの localhost:0.0 を環境変数DISPLAYに設定するここでの locaohost 部分は, ローカルのホストネーム, 127.0.0.1, localhost のいずれでもよい+Nextset the DISPLAY environment variableWhen VcXsrv Windows X Server is runningan icon appears in the indicator. When you hover the mouse over the icon, you will see something like "localhost:0.0 -1 clients", so set this localhost:0.0 to the environment variable DISPLAY. The locaohost part here can be either the local hostname, 127.0.0.1, or localhost. 
 {{ :public:win10_openssh:fig11.png?direct&200|}} {{ :public:win10_openssh:fig11.png?direct&200|}}
  
行 105: 行 105:
 PS C:\ [System.Environment]::SetEnvironmentVariable("DISPLAY", "localhost:0.0", "User") PS C:\ [System.Environment]::SetEnvironmentVariable("DISPLAY", "localhost:0.0", "User")
 </code> </code>
-PS を再起動し, 設定されているか確認する+Restart PS and check if it is set
 <code> <code>
 PS C:\ $env:DISPLAY PS C:\ $env:DISPLAY
行 111: 行 111:
 </code> </code>
  
-x転送を許可するオプションを追加し, ssh接続するxアプリケーションを起動し, 転送できているかを確認する+Add the option to allow X-fowarding and make a ssh connectionStart the X11 application and check if the transfer is successful
 <code> <code>
-PS C:\ ssh -AXY 踏み台username@踏み台サーバ+PS C:\ ssh -AXY Jump_Server_Username@Jump_Server
 </code> </code>
  
  
-===== ssh接続設定のファイル ===== +===== File for ssh connection settings ===== 
-以上の設定をファイルに保存し (C:\Users\username\.ssh\config), sshコマンドを省略できる. \\ +By saving the ssh configuration to a file (C:\Users\username\.ssh\config), the ssh command can be omitted
-* IdentityFile は秘密鍵を ssh-agent に登録するため必要ないが, 記録のため記述しておくとよい+
 <file> <file>
-Host 踏み台+Host Jump_Server
   ForwardAgent yes   ForwardAgent yes
   ForwardX11 yes   ForwardX11 yes
   ForwardX11Trusted yes   ForwardX11Trusted yes
-  User 踏み台username +  User Jump_Server_Username 
-  HostName 踏み台サーバ+  HostName Jump_Server
   IdentityFile "C:\Users\username\.ssh\id_ecdsa"   IdentityFile "C:\Users\username\.ssh\id_ecdsa"
  
 </file> </file>
  
-下記コマンドでssh接続できる. +Connect to ssh with the following: 
 <code> <code>
-PS C:\ ssh 踏み台+PS C:\ ssh Jump_Server
 </code> </code>
public/win10_openssh_en.1657081452.txt.gz · 最終更新: 2022/07/06 13:24 by hirata.nanako

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki