This is an old revision of the document!

Access MOGON from outside of the university network using Windows

Download PuTTY (preferrably use the MSI installer package1)) and install it on your computer. The following steps will show you how to configure the PuTTY terminal.

Add your SSH-Key to MOGON

If you have not yet deployed your SSH-Key on MOGON, please follow these instructions to add your public key to MOGON.
Download putty and install
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 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.
  1. First start a new PuTTY Session and enter the HostName of the MOGON service node you want to access.
  2. In the menu on the left side, select the category Connection and then the subcategory Data
    • Fill in your <username> in the field Auto-login username
  3. Now select Proxy in the category Connection and
    1. Fill in for the Proxy hostname,
    2. Enter your <username> in the field Username,
    3. Enter “C:\Program Files\PuTTY\plink.exe” -4 -P %proxyport -l %user %proxyhost -nc %host:%port as local proxy command.
      Maybe the path to plink.exe is different on your system. Make sure you have checked the path before.
  4. Within the Connection category select SSH and then the subcategory Auth. Disable Allow agent forwarding and enable Attempt authentication using Peagant.
  5. 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.
  1. 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.
  2. 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.
  3. Click the Open button to load the SSH-Key with Pageant.
  4. You will be prompted to enter your passphrase, before the Key can be added to the Pageant key list.

Generating an SSH Key Pair

In case you don't have a ssh key yet you can follow these guideline.
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 Xming to be installed on your computer.

The most recommended way to access the filesystem on Mogon is using 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

For this article we have used MobaXterm Home Edition v20.2 (Portable edition). Download MobaXterm first if you have not already done so.

Add your SSH-Key to MOGON

If you have not yet deployed your SSH-Key on MOGON, please follow these instructions to add your public key to MOGON.

Start the application and click on the Session button to start a new session:

Choose SSH to create a new SSH session. The session you create is automatically saved:

Fill in the fields Remote host and specify your Username. Afterwards go to the Advanced SSH setting tab and provide the path to your SSH-Key which is already present on MOGON:

Now click on the Network settings tab and activate Conenct through SSH gateway (jump host):

Use as the gateway ssh server and enter your username. Add the same SSH-Key as before. The configuration is now complete and you can click on OK. A window 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:

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:

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.

Generating an SSH Key Pair

In case you don't have a SSH-Key yet you can follow these guideline.

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
  • start/mogon_cluster/access_from_outside_windows.1594906830.txt.gz
  • Last modified: 2020/07/16 15:40
  • by jrutte02