Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you use both, you will need to specify which one you want to login, otherwise it will just pick the last one used.

Using both gateways simultaneously

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 explicitely. One way to do it is to define the following entry in your ~/.ssh/config (replace <email_address> by the actual value. 

No Format
# 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

If you are not sure what email address you need to use, just run the tsh login once and run the following:

No Format
ls ~/.tsh/keys/*/*.pub

Connecting to hosts through the gateway

...