MCPcopy
hub / github.com/smallstep/cli / getBastion

Function getBastion

command/ssh/proxycommand.go:218–227  ·  view source on GitHub ↗
(ctx *cli.Context, user, host string)

Source from the content-addressed store, hash-verified

216}
217
218func getBastion(ctx *cli.Context, user, host string) (*api.SSHBastionResponse, error) {
219 client, err := cautils.NewClient(ctx)
220 if err != nil {
221 return nil, err
222 }
223 return client.SSHBastion(&api.SSHBastionRequest{
224 User: user,
225 Hostname: host,
226 })
227}
228
229func proxyDirect(host, port string) error {
230 return proxyDirectWithIO(host, port, os.Stdin, os.Stdout)

Callers 1

proxycommandActionFunction · 0.85

Calls 2

NewClientFunction · 0.92
SSHBastionMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…