Versions Compared

Key

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

...

  1. Open the zip file in your file browser
  2. Drag the teleport folder inside the file and drop into the directory of your choice (the main directory for your user, for example)
  3. Open MobaXterm and start a local terminal. 

  4. Add to the PATH variable the location of the teleport directory. For example, if you dropped it on your main user directory (C:\Users\yourusernameyourwindowsuser):

    No Format
    echo 'export PATH=/drives/c/Users/yourusernameyourwindowsuser/teleport:$PATH' >> ~/.bashrc
    source ~/.bashrc


...

Excerpt
  1. Open the File Explorer and navigate to C:\Users\yourwindowsuser\
  2. If you have a directory called  ".ssh" directory, go inside. If not, you may create it with clicking on "New Folder"
  3. Inside the .ssh directory, check if there is a file called "config".
    1. If config exist, open it with your favourite editor, such as notepad or vscode.
    2. If config does not exist, you can open your favourite editor such as notepad or vscode to create the file and save it later
  4. Add the snipped below in the file you opened.

    Code Block
    languagetext
    titleSSH config snippet in ~/.ssh/config
    Host jump.ecmwf.int a?-* a??-* hpc-* hpc2020-* ecs-*
      User ecmwfusername 
      IdentityFile ~/.tsh/keys/jump.ecmwf.int/user.address@somewhere.com
      CertificateFile ~/.tsh/keys/jump.ecmwf.int/user.address@somewhere.com-ssh/jump.ecmwf.int-cert.pub
      HostKeyAlgorithms +ssh-rsa*,rsa-sha2-512
      PubkeyAcceptedKeyTypes +ssh-rsa*
      ServerAliveInterval 60
      TCPKeepAlive yes
    
    Host a?-* a??-* hpc-* hpc2020-* ecs-*
      ProxyJump jump.ecmwf.int


  5. You should replace ecmwfusername by your registered ECMWF user and user.address@somewhere.com by your registered email address at ECMWF.

    Tip
    titleNot sure about username and email?

    You can find the right values for those two parameters in the output of the tsh command:

    Panel

    % tsh login
    > 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 3h56m0s]
    Extensions: permit-X11-forwarding, permit-agent-forwarding, permit-port-forwarding, permit-pty  



  6. Save the file. If you are creating the file from scratch, make sure you save it under C:\Users\yourwindowsuser\.ssh and with the name "config", including the double quotes.
  7. Make the 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.

...