MCPcopy Create free account
hub / github.com/Mister-leo/fssh / BuildProxyJump

Function BuildProxyJump

internal/sshconfig/hostconfig.go:180–185  ·  view source on GitHub ↗

BuildProxyJump constructs a ProxyJump string

(user, host string)

Source from the content-addressed store, hash-verified

178
179// BuildProxyJump constructs a ProxyJump string
180func BuildProxyJump(user, host string) string {
181 if user != "" {
182 return fmt.Sprintf("%s@%s", user, host)
183 }
184 return host
185}
186
187// ParseProxyCommand attempts to parse an existing ProxyCommand
188func ParseProxyCommand(cmd string) (*ProxyConfig, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected