These are the instructions on how to install and configure your Teleport SSH access on Windows 10 and 11 using MobaXterm to connect to ECMWF services such as the Atos HPCF and ECGATE ECS services.
Info |
---|
Check |
...
the following pages if you are using |
...
another Windows method: Teleport SSH Access - Windows Terminal and Powershell configuration |
Table of Contents
Table of Contents | ||
---|---|---|
|
Demo
Here is a demonstration on how to set up Teleport to connect to our our Atos HPCF from your terminal on a Windows 10 or 11. You can find the step by step guide described below.
View filemultimedia | |||||
---|---|---|---|---|---|
|
Installing the tsh
client
...
- Open the zip file in your file browser
- Drag the teleport folder inside the file and drop into the directory of your choice (the main directory for your user, for example)
Open MobaXterm and start a local terminal.
Add to the PATH variable the location of the teleport directory. For example, if you dropped it on your main user directory (C:\Users\yourwindowsuser):
No Format echo 'export PATH=/drives/c/Users/yourwindowsuser/teleport:$PATH' >> ~/.bashrc source ~/.bashrc
Authenticating yourself
Once every 12 hours, you will need to refresh your tokens with the tsh
command. SSH connections may remain active for longer than 12 hours, but new connections will require re-authentication.
To authenticate yourself, Open a local terminal on your MobaXterm and run tsh
, giving the location of our Teleport gateway:
|
Your default web browser will open. You should login with your email address, ECMWF password, and then the code from your Time-based One-Time-Password (TOTP) device or the 8-digit one-time passcode from your ActivIdentity (HID) security token if you have not configured your TOTP yet.
Info | ||
---|---|---|
| ||
If you're already logged in to the ECMWF website, or have recently logged in to this service, the password prompt might be skipped. |
Info | ||
---|---|---|
| ||
If your computer does not have a browser or cannot display one, you may use the Teleport SSH access - Browserless Login Python Module for the authentication. |
If the process is successful, you will see an output such as:
No Format |
---|
> Profile URL: https://jump.ecmwf.int:443
Logged in as: user.address@somewhere.com
Cluster: jump.ecmwf.int
Roles:
Logins: ecmwfusername
Kubernetes: disabled
Valid until: 2022-12-13 20:54:18 +0000 GMT [valid for 4h37m0s]
Extensions: permit-X11-forwarding, permit-agent-forwarding, permit-port-forwarding, permit-pty |
...
title | Subsequent logins |
---|
Warning |
---|
Please be aware that you must use a version of "tsh" equal to or lower than 13. We are working on removing this limitation in the very near future |
Authenticating yourself
Info |
---|
The following commands need to be run on a MobaXterm local terminal |
Multiexcerpt include | ||||
---|---|---|---|---|
|
Once you have logged int at least once, tsh will save your proxy settings so you can skip the extra argument next time:
...
Setup your SSH config
We strongly recommend setting up all the SSH options needed for the connection instead of passing them on the command line.
Excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
C:\Users\yourwindowsuser\ .ssh " directory, go inside. If not, you may create it with clicking on "New Folder".ssh directory, check if there is a file called "config ".
Add the snipped below in the file you opened.
Edit the file
| ||||||||
|
Panel |
---|
|
|
Now you should make the
C:\Users\yourwindowsuser\.ssh
and with the name "config", including the double quotes.tsh internal directory where SSH certificates are generated visible within MobaXterm running the following command on a MobaXterm local terminal:
No Format |
---|
ln -s /drives/c/Users/yourwindowsuser/.tsh ~/ |
SSH connection
Once you have configured the appropriate settings, any SSH-based tools such as ssh
, scp
or rsync
should work out of the box without any additional options.
To test the connection, from your local terminal on MobaXterm you may ssh into hpc-login if you have access to ECMWF's HPCF:
No Format |
---|
ssh hpc-login |
Or alternatively, if you only have access to ECMWF ECS service:
No Format |
---|
ssh ecs-login |
Visit our HPCF User Guide for further information.
Troubleshooting
If you cannot connect via SSH and cannot manage to understand why, please raise an issue to our ECMWF Support portal and sending us the output of the commands:
No Format |
---|
tsh login
ssh -v ecs-login |
Info |
---|
The following commands need to be run on a MobaXterm local terminal |
Multiexcerpt include | ||||
---|---|---|---|---|
|
Troubleshooting
Multiexcerpt include | ||||
---|---|---|---|---|
|