Closed pschisa closed 1 month ago
@pschisa Just to make sure I understand, does "teleport" mean the Proxy Service, a host running the SSH Service, or both? What would be some examples of commands to run? Thanks!
The intention was to provide an example in golang utilizing the API to perform a functional action like retrieve/reference credentials, ssh in to a node, and execute a command.
@pschisa When would users want to build a custom API client for retrieving credentials and SSHing into a host vs., say, managing host certificates via Machine ID (https://goteleport.com/docs/machine-id/guides/host-certificate/) and using a standard SSH client to access the host?
I figure that we'd be better off documenting the use of Machine ID (rather than directly interacting with the Teleport API) with tools like Ansible / common libraries for Python/Go etc. To some extent, we could consider the Ansible element of this done and just throw together some quick references on using the Machine ID SSH multiplexer with Go or Python.
Documentation request: Request to have documentation or examples provided for using Teleport with Go to perform simple automated SSH workflows such as establishing an ssh session with teleport and running some commands over the established session.