InfoGrab Docs

데이터베이스 접근 CLI 참조

Teleport 데이터베이스 접근을 위한 CLI 참조.

이 참조는 Database Service 관리를 위한 일반적인 명령을 실행하는 방법을 보여줍니다: Teleport Database Service를 실행할 호스트에서 실행되는 teleport 데몬 명령. Teleport 클러스터에 알려진 데이터베이스를 나타내는 db 리소스를 관리하는 데 사용하는 tctl 관리 도구. To check that you can connect to your Teleport cluster, sign in with tsh login , then verify that you can run tctl commands using your current credentials. For example, run the following command, assigning to the domain name of the Teleport Proxy Service in your cluster and to your Teleport username: $ tsh login --proxy= --user= $ tctl status # Cluster (=teleport.url=) # Version (=teleport.version=) # CA pin (=presets.ca_pin=) If you can connect to the cluster and run the tctl status command, you can use your current credentials to run subsequent tctl commands from your workstation. If you host your own Teleport cluster, you can also run tctl commands on the computer that hosts the Teleport Auth Service for full permissions. 클러스터의 데이터베이스에 접근하기 위해 최종 사용자가 실행하는 tsh 클라이언트 도구. teleport db start # Teleport Database Service를 시작합니다. Self-Hosted Teleport Enterprise Cloud $ teleport db start \ --token=/path/to/token \ --auth-server=proxy.example.com:443 \ --name=example \ --protocol=postgres \ --uri=postgres.example.com:5432 $ teleport db start \ --token=/path/to/token \ --auth-server=mytenant.teleport.sh:443 \ --name=example \ --protocol=postgres \ --uri=postgres.mytenant.teleport.sh:5432 플래그 설명 -d/--debug 상세 로깅을 stderr로 활성화합니다. --pid-file PID 파일의 전체 경로. 기본적으로 PID 파일이 생성되지 않습니다. --auth-server Teleport Proxy Se