Accessing MOGON from outside using PuTTY
For this article we have used PuTTY Release 0.73.
Quick Start
- Start
Pageant
and add your private SSH-Key. - Start
PuTTY
and establish a new Connection to MOGON - Enter the second Factor from
freeOTP
orPrivacyIDEA
when asked forprivacyIDEA_Authentication
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.Preface - Download and Installation
Adding SSH-Key to Pageant
- 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.
Generating an SSH Key Pair
In case you don't have a ssh key yet you can follow these guideline.Access MOGON
Pageant running?
Make surePageant
is running and your SSH-Keys are added before your try to establish a connection to MOGON
- Before being able to transparently proxy your connection to MOGON service nodes through the
HPCGATE
, you need to connect to the host manually once and accept the SSH host key. Open PuTTY and enter<username>@hpcgate.zdv.uni-mainz.de
in the Host Name field and use Port22
. Click onOpen
afterwards. When PuTTY prompts you for host key validation, accept it. Then close the window again. - Start a new PuTTY Session and enter the
HostName
of the MOGON service node you want to access. You can find an overview of the MOGON service nodes . - In the menu on the left side, in the category
Connection
select the subcategoryData
- Fill in your
<username>
in the fieldAuto-login username
- Now select
Proxy
in the categoryConnection
and- Set
Proxy type
tolocal
, - Fill in
hpcgate.zdv.uni-mainz.de
for theProxy hostname
and22
for thePort
, - Enter your
<username>
in the fieldUsername
, - Enter
"C:\Program Files\PuTTY\plink.exe" -4 -P %proxyport -l %user %proxyhost -nc %host:%port
as local proxy command.
Maybe the path toplink.exe
is different on your system. Make sure you have checked the path before.
- Within the
Connection
category selectSSH
and then the subcategoryAuth
. DisableAllow agent forwarding
and enableAttempt authentication using Peagant
. - Now go back to the
Session
category and enter a name for your session in the field underSaved Sessions
. Click onSave
to save the session profile for further use.
X11 Forwarding
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 VcXsrv Windows X Server or Xming to be installed on your computer.
On a UNI Mainz Domain-pC you can install Xming via the ZDV Apps.

Copying files from/to MOGON w/ WinSCP
If you want to use WinSCP, configure it according to these screenshots:
Pageant
this instruction require that you use Pageant for SSH authentication1)
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