start:mogon_cluster:access_from_outside_windows

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
start:mogon_cluster:access_from_outside_windows [2020/07/15 21:43]
jrutte02
start:mogon_cluster:access_from_outside_windows [2021/07/08 18:02] (current)
meesters [using Windows] PuTTY behind PowerShell (lexicographically correct and hopefully less trouble)
Line 1: Line 1:
-====== Access MOGON from outside of the university network using Windows ====== 
- 
-<tabs> 
-  * [[#tab-putty|Using PuTTY]] 
-  * [[#tab-mobaxterm|Using MobaXterm]] 
- 
-<pane id="tab-putty"> 
-===== Using PuTTY ===== 
- 
-<alert type="danger" dismiss="true" icon="fa fa-warning">Work In Progress</alert> 
- 
-Download [[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html|PuTTY]] (preferrably use the MSI installer package((because in addition to the plain ''putty.exe'' you will most definitely need ''plink.exe'' for proxy connection, ''puttygen.exe'' for  key generation and ''pageant.exe'' for key-based authentication))) and install it on your computer. The following steps will show you how to configure the PuTTY terminal. 
- 
-<callout type="tip" icon="true" title="Add your SSH-Key to MOGON"> 
-If you have not yet deployed your SSH-Key on MOGON, please follow [[:start:mogon_cluster:basic_authentication#add_ssh-key_to_mogon|these]] instructions to add your public key to MOGON. 
-</callout> 
- 
-^ Download putty and install ^ 
-| {{ ::putty_directory.png?direct&512 |}} | 
- 
-===== Access MOGON - RSA Authentication ===== 
- 
 <grid> <grid>
-<col lg="5md="12" sm="12" xs="12"> +<col xs="12sm="12" md="12" lg="6">
-Before being able to transparently proxy your connection to MOGON service nodes through the ''sshgate'', you need to connect to the host manually once and accept the SSH host key. So first open PuTTY and enter ''hpcgate.zdv.uni-mainz.de'' in the Host Name field and use the Port ''22''. When PuTTY prompts you for host key validation, accept it. Then close the window again.+
  
-  - First start a new PuTTY Session and enter the ''HostName'' of the MOGON service node you want to access. +<jumbotron
-  - In the menu on the left side, select the category ''Connection'' and then the subcategory ''Data'' +===== Accessing MOGON===== 
-    * Fill in your ''<username>'' in the field ''Auto-login username'' +==== using Windows ==== 
-  - Now select ''Proxy'' in the category ''Connection'' and  +</jumbotron>
-    - Fill in ''hpcgate.zdv.uni-mainz.de'' for the ''Proxy hostname'', +
-    - Enter your ''<username>'' in the field ''Username'',  +
-    - Enter ''"C:\Program Files\PuTTY\plink.exe" -4 -P %proxyport -l %user %proxyhost  -nc %host:%port'' as local proxy command. \\ {{fa>warning?fw}} Maybe the path to ''plink.exe'' is different on your system. Make sure you have checked the path before. {{fa>warning?fw}} +
-  - Within the ''Connection'' category select ''SSH'' and then the subcategory ''Auth''. **Disable** ''Allow agent forwarding'' and enable ''Attempt authentication using Peagant''.  +
-  - Now go back to the ''Session'' category and enter a name for your session in the field under ''Saved Sessions''. Click on ''Save'' to save the session profile for further use.+
 </col> </col>
-<col lg="7" md="12" sm="12" xs="12"+<col xs="12" sm="12" md="12" lg="6"> 
-<carousel interval="false"> +<list-group
-<slide+  {{fa>external-link?fw&color=#000}} [[:start:mogon_cluster:access_from_outside_windows:using_mobaxterm|using MobaXterm]] 
-{{ :start:mogon_cluster:putty_1.png?nolink |}} +  * {{fa>terminal?fw&color=#000}} [[:start:mogon_cluster:access_from_outside_windows:using_powershell|using PowerShell]] 
-<caption> +  * {{fa>tty?fw&color=#000}} [[:start:mogon_cluster:access_from_outside_windows:using_putty|using PuTTY]]   
-<text background="primary" size="large">First Step </text> +  {{fa>key?fw&color=#000}} [[:start:mogon_cluster:access_from_outside_windows:creating_sshkeys_on_windows|Creating SSH-Keys for MOGON on Windows]] 
-</caption> +</list-group>
-</slide> +
-<slide> +
-{{:start:mogon_cluster:putty_2.png?nolink&512|}} +
-<caption> +
-<text background="primary" size="large">Second Step </text> +
-</caption> +
-</slide> +
-<slide> +
-{{:start:mogon_cluster:putty_3.png?nolink&512|}} +
-<caption> +
-<text background="primary" size="large">Third Step </text> +
-</caption> +
-</slide> +
-<slide> +
-{{:start:mogon_cluster:putty_4.png?nolink&512|}} +
-<caption> +
-<text background="primary" size="large">Fourth Step </text> +
-</caption> +
-</slide> +
-<slide> +
-{{:start:mogon_cluster:putty_5.png?nolink&512|}} +
-<caption> +
-<text background="primary" size="large">Fifth Step </text> +
-</caption> +
-</slide> +
-</carousel>+
 </col> </col>
 </grid> </grid>
- 
- 
- 
- 
-==== Load RSA key in SSH authentication agent for PuTTY, PSCP, PSFTP, and Plink ==== 
- 
-<grid> 
-<col lg="5" md="12" sm="12" xs="12"> 
-  - Start ''Pageant''. By default it starts minimized in the system tray. Add your SSH-Key by right clicking on the icon. Click on ''View Keys'' in the following context menu. 
-  - Click on ''Add Key''. This will open the file explorer, where you can choose your SSH-Key to load. Make sure you select files with the ''.ppk'' extension. 
-  - Click the ''Open'' button to load the SSH-Key with Pageant. 
-  - You will be prompted to enter your passphrase, before the Key can be added to the Pageant key list. 
-</col> 
-<col lg="7" md="12" sm="12" xs="12"> 
-<carousel interval="false"> 
-<slide> 
-{{::pageant_view_keys.png?nolink|}} 
-<caption> 
-<text background="primary" size="large">First Step </text> 
-</caption> 
-</slide> 
-<slide> 
-{{::pageant_add_key.png?nolink|}} 
-<caption> 
-<text background="primary" size="large">Second Step </text> 
-</caption> 
-</slide> 
-<slide> 
-{{::pageant_select_private_key.png?nolink|}} 
-<caption> 
-<text background="primary" size="large">Third Step </text> 
-</caption> 
-</slide> 
-<slide> 
-{{::pageant_enter_pw.png?nolink|}} 
-<caption> 
-<text background="primary" size="large">Fourth Step </text> 
-</caption> 
-</slide> 
-</carousel> 
- 
- 
-</col> 
-</grid> 
- 
- 
-<callout type="info" title="Generating an SSH Key Pair" icon="true"> 
-**In case you don't have** a ssh key yet you can follow [[start:mogon_cluster:access#how_to_set_up_ssh-keys_for_mogon|these]] guideline.  
-</callout> 
- 
-==== X11 Forwarding ==== 
- 
-<grid> 
-<col lg="6" md="12" sm="12" xs="12"> 
- 
-To enable X11 forwarding click on ''X11'' in the ''SSH'' subcategory, and click on the ''Enable X11 forwarding'' option. Make sure that the remote X11 authentication protocol is set to ''MIT-Magic-Cookie-1''. 
- 
-Be sure to add ''-X'' to the local Proxy command line. 
- 
-X11 forwarding requires either X-Win32 or [[http://www.zdv.uni-mainz.de/4534.php|Xming]] to be installed on your computer. 
-</col> 
-<col lg="6" md="12" sm="12" xs="12"> 
-<image shape="thumbnail">{{:start:mogon_cluster:putty_x11_1.png?nolink|}}</image> 
-</col> 
-</grid> 
- 
- 
-==== Copying files from/to Mogon ==== 
- 
-The most recommended way to access the filesystem on Mogon is using **[[filesystems#ftp|FTPS]]**, as described on that page. 
- 
-If you //must// use WinSCP, configure it according to these screenshots (the Proxy configuration from PuTTY does not seem to work): 
- 
-^ Example configuration with the username ''schlarbm'' ^^ 
-| {{ ::winscp1.png?direct&512 |}} | {{ ::winscp2.png?direct&512 |}} | 
-| {{ ::winscp3.png?direct&512 |}} | {{ ::winscp4.png?direct&512 |}} | 
-</pane> 
- 
-<pane id="tab-mobaxterm"> 
-===== Using MobaXterm ===== 
- 
-For this article we have used ''MobaXterm Home Edition v20.2 (Portable edition)''. Download ''MobaXterm'' first if you have not already done so. 
- 
-<callout type="tip" icon="true" title="Add your SSH-Key to MOGON"> 
-If you have not yet deployed your SSH-Key on MOGON, please follow [[:start:mogon_cluster:basic_authentication#add_ssh-key_to_mogon|these]] instructions to add your public key to MOGON. 
-</callout> 
- 
-Start the application abd click on the ''Session'' button to start a new session: 
- 
-{{ :start:mogon_cluster:mobaxterm_proxyjump_1.png?800 }} 
- 
-Choose ''SSH'' to create a new SSH session. The session you create is automatically saved: 
- 
-{{ :start:mogon_cluster:mobaxterm_proxyjump_2.png?800 }} 
- 
-Fill in the fileds ''Remote host'' and specify your ''Username''. Afterwards go to ''Advanced SSH setting'' and provide the path to your ''SSH-Key'' which is **already present on MOGON**: 
- 
-{{ :start:mogon_cluster:mobaxterm_proxyjump_3.png?800 }} 
- 
-Now click on the ''Network settings'' tab and activate ''Conenct through SSH gateway (jump host)'': 
- 
-{{ :start:mogon_cluster:mobaxterm_proxyjump_4.png?800 }} 
- 
-Use 'sshgate.zdv.uni-mainz.de' as the gateway ssh server and enter your ''Username''. Add the same ''private Key'' as before. The configuration is now complete and you can click on ''OK''. A windows will open and you will be asked for the passphrase for your SSH key. After you entered the passphrase correctly, the session starts automatically. 
- 
-== Using MobaXterm SSH agent == 
- 
-Start ''MobaXterm'' and click on ''Settings'': 
- 
-{{ :start:mogon_cluster:mobaxterm_settings_1.png?800 }} 
- 
-now go to the ''SSH'' tab and **deactivate** ''Forward SSH agents''. Add your SSH key by clicking the plus sign, you will be asked for your Passphrase. If your are finished click on ''OK'': 
- 
-{{ :start:mogon_cluster:mobaxterm_settings_2.png?800 }} 
- 
-You'll now be asked for the passphrase every time you start MobaXterm but can use your SSH keys in different sessions through the SSH agent without explicitly setting up the key. 
- 
-<callout type="info" title="Generating an SSH Key Pair" icon="true"> 
-**In case you don't have** a ssh key yet you can follow [[start:mogon_cluster:access#how_to_set_up_ssh-keys_for_mogon|these]] guideline.  
-</callout> 
- 
-</pane> 
-</tabs> 
-~~NOTOC~~ 
- 
  • start/mogon_cluster/access_from_outside_windows.1594842217.txt.gz
  • Last modified: 2020/07/15 21:43
  • by jrutte02