Using pgAdmin Windows client to access postgresql database through Teleport #7710
deusxanima
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This article assumes that you are already familiar with the process of adding a database connection in pgAdmin and have gone through the Teleport Database Access GUI Clients documentation to familiarize yourself with the full set of configuration requirements.
There are two ways to get pgAdmin to work with Teleport on Windows.
Manually load the certificates and declare the proxy endpoint for the db:
tsh login
on the Windows clienttsh db login db_name
tsh db config
to get host, port, and cert paths.Have pgAdmin automatically load certificates and declare proxy endpoint for the db via service file on login:
tsh login
on the Windows clienttsh db login db_name
tsh db config
to get host, port, and cert paths.setx PGSERVICEFILE <path_to_.pg_service.conf_file>
(the .pg_service.conf file should be in your home directory once you log into the db withtsh db login db_name
)Note also that you may have to restart pgAdmin after setting the PGSERVICEFILE variable and configuring the Service name in the db Properties section in order for the change to be promulgated.
Beta Was this translation helpful? Give feedback.
All reactions