...
Code Block |
---|
|
user@local $ python3 -m teleport.login --help
VERSION = "1.1.3"
Environment Variables:
ECMWF_USERNAME The ECMWF Username
ECMWF_PASSWORD The ECMWF Password
TSH_EXEC The Teleport binary tsh path
TSH_PROXY The ECMWF Teleport proxy
Configuration file content example (yaml):
tsh_exec: '/usr/local/bin/tsh'
tsh_proxy: 'shell.ecmwf.int:443'
ecmwf_username: 'your_username'
ecmwf_password: 'your_password'
Usage: python -m teleport.login [OPTIONS]
Options:
--configuration PATH The path to the configuration file.
-f, --force-clean To Request a new certificate even if the current one
is valid.
-o, --tsh-options TEXT To add extra options to tsh command. e.g.: -o "--no-
use-local-ssh-agent" -o "--insecure"
--help Show this message and exit. |
...
Code Block |
---|
language | bash |
---|
title | Login with Certificates Checks |
---|
|
user@local $ DEBUG=True python3 -m teleport.login
INFO - Current certificate [/home/uid/.tsh/keys/shell.ecmwf.int/FirstName.LastName@ecmwf.int-x509.pem] is valid until [2021-06-08 20:49:58] |
If you need to pass additional options to the tsh command use --tsh-options
Code Block |
---|
language | bash |
---|
title | Passing other options to tsh |
---|
|
user@local $ python3 -m teleport.login --tsh-options "--no-use-local-ssh-agent --insecure" |
Show If |
---|
|
ECMWF Staff only: Note |
---|
NOTE: If you have enabled TOTP on accounts, that one should be used instead of the old HID Token. |
|
...