...
Code Block |
---|
language | bash |
---|
title | Installation |
---|
|
user@local $ pip3 install teleport-browserless-login[certificates-check] --user -U -i https://get.ecmwf.int/repository/pypi-all/simple |
Note |
---|
title | Note for Raspberry Pi users |
---|
|
...
|
If you get the error: Code Block |
---|
| Could not install packages due to an EnvironmentError: 404 Client Error: Not Found for url: https://www.piwheels.org/simple/teleport-browserless-login/ |
Comment the line extra-index-url=https://www.piwheels.org/simple from /etc/pip.conf |
Check the module help
:
Code Block |
---|
|
user@local $ python3 -m teleport.login --help
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.
--help Show this message and exit. |
...
An example of such a configuration file can be found on the repository .teleport-login.yamlis:
Code Block |
---|
language | bash |
---|
title | Configuration File Example |
---|
|
user@local $ cat .teleport-login.yaml
tsh_exec: '/usr/local/bin/tsh'
tsh_proxy: 'shell.ecmwf.int:443'
ecmwf_username: 'your_username'
ecmwf_password: 'your_password' |
...
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] |
...
you have enabled TOTP on accounts, that one should be used instead of the old HID Token. |
|