nt
Teleport is the replacement for the ECaccess SSH service. Both services are currently available and can be widely used at this point. However, once ECMWF's systems are fully operational in the Bologna Data Centre and the Reading-based hosts (the Cray HPCF, ECGATE and others) have been decommissioned, Teleport SSH will be the only way to connect using ssh to ECMWF's Bologna-based hosts (the Atos HPCF and ECGATE Services). The ECaccess service will not support interactive ssh connections to the Bologna-based hosts. |
Teleport is software which provides an SSH Jump Host (or Bastion host) service in a secure, modern way, with support for role-based access control and single sign-on. At the moment there are two gateways available:
The Teleport gateway SSH Host Keys are currently:
|
Please report any feedback or issues through the ECMWF Support Portal . |
The Teleport service provides:
The single sign-on step is performed using an application called "tsh
", every 12 hours.
After that you use standard ssh or scp to connect to systems inside ECMWF.
Alternatively you can have simple terminal access in a web browser.
tsh
The tsh
application is required to perform user authentication once every 12 hours.
MacOS users can use Homebrew for installation: brew install teleport
.
Alternatively, and for Windows, download from the Gravitational website and place into your $PATH
.
The binary is available for Linux 32-bit, 64-bit, and ARM, as well as Windows 64-bit and a signed package for MacOS.
Once every 12 hours, you will need to refresh your tokens with the tsh
command, through your web browser.
SSH connections can remain active for longer than 12 hours, but new ones will require re-authentication. |
Run tsh
, giving the location of our gateways. For Bologna hosts such as the Atos HPCF:
tsh login --proxy=jump.ecmwf.int |
or for platforms based in Reading such as ECGATE or Cray HPCF:
tsh login --proxy=shell.ecmwf.int |
Your default web browser will open and you should login with your email address, ECMWF password, and then HID (ActivID) Token code.
If you're already logged in to the ECMWF website, or have recently logged in to this service, the password prompt might be skipped. |
Subsequent Occasions
if you only use one of the gateways, on subsequent occasions you may just do:
tsh login |
If you use both, you will need to specify which one you want to login, otherwise it will just pick the last one used.
There is currently a limitation in the SSH agent that can only use one set of keys (the one for the last tsh login). If you wish to use both on the same session, you would need to tell ssh what keys need to be used explicitly. One way to do it is to define the following entry in your ~/.ssh/config (replace <email_address> by the actual value.
# Teleport gateways # Temporary workaround to allow concurrent usage of both gateways Host shell.ecmwf.int jump.ecmwf.int IdentityFile ~/.tsh/keys/%h/<email_address> CertificateFile ~/.tsh/keys/%h/<email_address>-ssh/%h-cert.pub HostKeyAlgorithms +ssh-rsa*,rsa-sha2-512 PubkeyAcceptedKeyTypes +ssh-rsa* |
If you are not sure what email address you need to use, just run the tsh login once and run the following:
ls ~/.tsh/keys/*/*.pub |
Windows users should skip to our Guide for Windows SSH to ECMWF. |
OpenSSH 7.3 or later has a simple command line option to connect via our gateway to the destination-host
:
ssh -J username@jump.ecmwf.int username@destination-host ssh -J username@shell.ecmwf.int username@destination-host |
For example, if your username is ab0
and you wish to connect to Atos HPCF:
ssh -J ab0@jump.ecmwf.int ab0@hpc-login |
# For users without HPC access: ssh -J ab0@jump.ecmwf.int ab0@ecs-login |
And if you wish to connect tp ecgate
:
ssh -J ab0@shell.ecmwf.int ab0@ecgate |
The OpenSSH configuration setting for this is named ProxyJump,
e.g. add the following lines in the ~/.ssh/config
file on you client system:
Host jump.ecmwf.int shell.ecmwf.int HostKeyAlgorithms +ssh-rsa*,rsa-sha2-512 PubkeyAcceptedKeyTypes +ssh-rsa* User ab0 # For ecgate and Cray HPCF Host ecg* cc* HostKeyAlgorithms +ssh-rsa*,rsa-sha2-512 PubkeyAcceptedKeyTypes +ssh-rsa* User ab0 ProxyJump shell.ecmwf.int # For Atos HPCF Host a?-* a??-* hpc-* hpc2020-* ecs-* HostKeyAlgorithms +ssh-rsa*,rsa-sha2-512 PubkeyAcceptedKeyTypes +ssh-rsa* User ab0 ProxyJump jump.ecmwf.int |
See the Legacy Configuration note below if your ssh client is older than 7.3.
If your connection fails after working for some time, it could be because your tokens have expired. You can check them:
$ tsh status > Profile URL: https://jump.ecmwf.int:443 Logged in as: firstname.lastname@ecmwf.int Cluster: jump.ecmwf.int Roles: * Logins: ab0 Valid until: 2020-06-22 23:26:30 +0100 BST [EXPIRED] Extensions: permit-X11-forwarding, permit-agent-forwarding, permit-port-forwarding, permit-pty |
From OpenSSH 8.4 the client may refuse to connect with the cryptic message: "Connection closed by UNKNOWN port 65535".
This is because the Teleport system has to remain compatible with some old OpenSSH server versions. The fix is to add this extra lines to your OpenSSH configuration:
Host jump.ecmwf.int shell.ecmwf.int HostKeyAlgorithms +ssh-rsa*,rsa-sha2-512 PubkeyAcceptedKeyTypes +ssh-rsa* User ab0 Host ecg* cc* User ab0 HostKeyAlgorithms +ssh-rsa*,rsa-sha2-512 PubkeyAcceptedKeyTypes +ssh-rsa* Host a?-* a??-* hpc-* hpc2020-* ecs-* HostKeyAlgorithms +ssh-rsa*,rsa-sha2-512 PubkeyAcceptedKeyTypes +ssh-rsa* User ab0 ProxyJump jump.ecmwf.int |
The hosts directly available through the Bolgona Teleport gateway (jump.ecmwf.int):
For hosts based in Reading through the Reading Teleport gateway (shell.ecmwf.int) are:
To access any other host, the
You can also set password-less login, as below. |
This configuration enables single-hop ssh (using ProxyJump) to other ECMWF hosts. Not required for ECGATE, CCA/CCB or Atos HPCF login nodes and Linux VDI. |
Add the Teleport certificate authority to your ~/.ssh/authorized_keys
file, on the relevant system at ECMWF, e.g. ecgate, cca:
curl -fs https://nexus.ecmwf.int/repository/internal-teleport-configs/prod/teleport_user_ca.pub >> ~/.ssh/authorized_keys |
On cca/ccb, you will need to load the curl module beforehand. |
This configuration will allow access to any host which mounts the same |
You can open a tabbed terminal in the web browser, with support for SCP upload and download.
|
|
Browse to http://webshell.ecmwf.int/destination-host/username
(replacing destination-host and username with your selection).
For example, if your username is ab0
and you wish to connect to ecgate
:
http://webshell.ecmwf.int/ecgate/ab0 |
The destination host should be just the short name, without "ecmwf.int". |
If you open another tab inside the web terminal, use the QUICK LAUNCH box and enter "username@destination-host:22
", for example ab0@ecgate:22
.
The web terminal works very well to access |
There are various ways to initiate SSH from Windows 10, so it depends on your system and your preferences.
We recommend using the Windows Subsystem for Linux if you can (on your own machine), followed by starting the SSH Agent and then connecting as for Linux/MacOS systems. |
Alternatively, you can use:
|
|
|
If you have logged in but ssh fails to connect, it may be that your SSH agent is not running.
The Agent can be started and tokens refreshed this way:
eval $(ssh-agent -s) tsh logout tsh login --proxy=jump.ecmwf.int |
And this will make sure the Agent continues to run in your environment:
echo 'eval $(ssh-agent -s)' >> ~/.bash_profile # or ~/.bashrc on WSL |
(if you're using WSL creating a .bash_profile stops .bashrc being executed when you start a shell session, therefore use ~/.bashrc instead here)
SCP, Agent forwarding, X11 forwarding, and Port forwarding (including SOCKS proxy), all work through the Teleport gateway. A nice application of port forwarding with Teleport is the use of the ecflow_ui client on your local system to follow ecflow suites running at ECMWF. See Teleport - using local ecflow_ui for more details.
For scp
you can use the -o
option:
scp -o ProxyJump=ab0@jump.ecmwf.int ab0@hpc-login:/remote/file/path /local/file/path |
You may wish to avoid storing SSH Keys to disk and always (and only) use the SSH Agent.
tsh
client versions 7.1.0 onwards have this feature:
-k, --add-keys-to-agent Controls how keys are handled. Valid values are [auto no yes only].
$ brew install --cask xquartz # start xquartz app $ export DISPLAY=:0 $ ssh -X .... |
For OpenSSH clients older than 7.3, the following configuration can be used:
# ~/.ssh/config file: Host a?-* a??-* ecs-* hpc-* hpc2020-* User ab0 ProxyCommand /usr/bin/ssh -q -W %h:%p ab0@jump.ecmwf.int |
Similar setup can be configured to use jump.ecmwf.int for Atos HPCF and other Bologna-based hosts.
You might not be able to download and run tsh
, or access our web login service, or run the SSH Agent, from where you wish to use ssh.
Instead you can use (or copy) the identity files which tsh
stores in $HOME
:
# ~/.ssh/config file: Host ecgate User ab0 IdentityFile ~/.tsh/keys/shell.ecmwf.int/firstname.lastname@ecmwf.int ProxyCommand /usr/bin/ssh -q -i ~/.tsh/keys/shell.ecmwf.int/firstname.lastname@ecmwf.int -W %h:%p ab0@shell.ecmwf.int |
This is a good way to access Teleport credentials via a shared file system from any host.
Similar setup can be configured to use jump.ecmwf.int for Atos HPCF and other Bologna-based hosts.
Recent Fedora Linux distributions (such as Fedora-33) using OpenSSH 8.4p1 no longer accept the "ssh-rsa" signature scheme using the SHA-1 hash algorithm in conjunction with the RSA public key algorithm.
As a workaround for this problem, you may need to add ssh-rsa (rsa-sha2-256 or rsa-sha2-512 can also be used) as a PubkeyAcceptedKeyTypes to your ~/.ssh/config file:
# ~/.ssh/config file: Host jump.ecmwf.int shell.ecmwf.int IdentityFile ~/.tsh/keys/%h/your@email.com CertificateFile ~/.tsh/keys/%h/your@email.com-ssh/%h-cert.pub HostKeyAlgorithms +ssh-rsa*,rsa-sha2-512 PubkeyAcceptedKeyTypes +ssh-rsa* User ab0 Host a?-* a??-* ecs-* hpc-* hpc2020-* User ab0 ProxyJump jump.ecmwf.int IdentityFile ~/.tsh/keys/jump.ecmwf.int/your@email.com CertificateFile ~/.tsh/keys/jump.ecmwf.int/your@email.com-ssh/jump.ecmwf.int-cert.pub |
Note you would need to replace your your@email.com
by your registered email address at ECMWF and ab0
by your own ECMWF user id.
The service is configured to use only standard ports 22, 80, and 443, to help with access wherever users are.
Additional configuration at the local user site may be required to allow connections out. The diagram below shows the TCP ports and destination hosts used.
Versions 8.3.5 and newer of the
|
tsh login
" step uses ports 80 and 443 in order to log in to the service and obtain the client certificate.