start:mogon_cluster:access_from_outside_windows:using_powershell

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
start:mogon_cluster:access_from_outside_windows:using_powershell [2021/10/22 16:48]
pkeller2
start:mogon_cluster:access_from_outside_windows:using_powershell [2021/12/05 20:25] (current)
jrutte02
Line 7: Line 7:
   - Check if **OpenSSH** is installed on your system: \\ <code bash>ssh -V </code>    - Check if **OpenSSH** is installed on your system: \\ <code bash>ssh -V </code> 
   - You should get an output similar to that shown below \\  <code bash> OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5 </code> This tutorial was created with the **OpenSSH version** shown above and **PowerShell 7.0.2**.   - You should get an output similar to that shown below \\  <code bash> OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5 </code> This tutorial was created with the **OpenSSH version** shown above and **PowerShell 7.0.2**.
-  - Verify that the ''ssh-agent'' is running: \\ <code bash>Get-Service ssh-agent</code> You should get an output like in the screenshot on the right. \\ If the ''shh-agent'' is no runnning, start it with: \\ <code bash>Start-Service ssh-agent</code> +  - Verify that the ''ssh-agent'' is running: \\ <code bash>Get-Service ssh-agent</code> You should get an output like in the screenshot on the right. \\ If the ''shh-agent'' is no runnning, start it with: \\ <code bash>Start-Service ssh-agent</code> To have ''ssh-agent'' to automatically start with windows, you can execute (from elevated prompt): \\ <code shell> Set-Service ssh-agent -StartupType Automatic </code> 
-  - Go to the ''.ssh'' directory: \\ <code bash>cd ~\.ssh\</code>+  - Go to ''.ssh'' in your home directory: \\ <code bash>cd ~\.ssh\</code>
   - Generate a new SSH-Key pair with the ''ECDSA'' algorithm: \\ <code bash>ssh-keygen -t ecdsa -b 521 -C "HPCGATE,HPCLOGIN" </code> {{fa>warning?fw}}For compatibility reasons make sure to use the ''ECDSA'' algorithm. The ''RSA'' algorithm used by Windows is old compared to the ''RSA'' algorithm used on MOGON. This causes conflicts and prevents a connection from being established.{{fa>warning?fw}}   - Generate a new SSH-Key pair with the ''ECDSA'' algorithm: \\ <code bash>ssh-keygen -t ecdsa -b 521 -C "HPCGATE,HPCLOGIN" </code> {{fa>warning?fw}}For compatibility reasons make sure to use the ''ECDSA'' algorithm. The ''RSA'' algorithm used by Windows is old compared to the ''RSA'' algorithm used on MOGON. This causes conflicts and prevents a connection from being established.{{fa>warning?fw}}
   - Then ''ssh-keygen'' asks for a name for the key. \\ <code>Enter a file in which to save the key (/home/you/.ssh/id_rsa): [Press enter] </code>   - Then ''ssh-keygen'' asks for a name for the key. \\ <code>Enter a file in which to save the key (/home/you/.ssh/id_rsa): [Press enter] </code>
Line 22: Line 22:
     IdentityFile C:\Users\<username>\.ssh\<YourNewPrivateKey>     IdentityFile C:\Users\<username>\.ssh\<YourNewPrivateKey>
  
-Host login21 +Host mogon 
-    HostName miil01.zdv.uni-mainz.de+    HostName miil03.zdv.uni-mainz.de
     User <username>     User <username>
     Port 22     Port 22
     IdentityFile C:\Users\<username>\.ssh\<YourNewPrivateKey>     IdentityFile C:\Users\<username>\.ssh\<YourNewPrivateKey>
     ProxyCommand ssh.exe -W %h:%p -q hpcgate </code> The path to your ''IdentitiyFile'' may be different. Please make sure the path is correct before you save the file.     ProxyCommand ssh.exe -W %h:%p -q hpcgate </code> The path to your ''IdentitiyFile'' may be different. Please make sure the path is correct before you save the file.
-   - Start a new Session to a MOGON service node. For example, you can now simply use: \\ <code bash>ssh login21</code>+   - Start a new Session to a MOGON service node. For example, you can now simply use: \\ <code bash>ssh mogon</code>
    - **Done**. You should now be able to log in to the various MOGON service nodes. You can add each login node to your ''~\.ssh\config'' file. A list of MOGON Service Nodes can be found [[:start:mogon_cluster:access#mogon_service_nodes_overiew|here]].    - **Done**. You should now be able to log in to the various MOGON service nodes. You can add each login node to your ''~\.ssh\config'' file. A list of MOGON Service Nodes can be found [[:start:mogon_cluster:access#mogon_service_nodes_overiew|here]].
  
  • start/mogon_cluster/access_from_outside_windows/using_powershell.txt
  • Last modified: 2021/12/05 20:25
  • by jrutte02