MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / BuildSSHArgs

Function BuildSSHArgs

internal/ssh/client.go:350–352  ·  view source on GitHub ↗

BuildSSHArgs constructs the argument list for the ssh binary to connect to host as user, optionally via jumphost. Exported for use by CLI subcommands that need to exec ssh directly (without the TUI's "press Enter" prompt).

(user, host string, jumphost config.SSHJumpHost)

Source from the content-addressed store, hash-verified

348// host as user, optionally via jumphost. Exported for use by CLI subcommands
349// that need to exec ssh directly (without the TUI's "press Enter" prompt).
350func BuildSSHArgs(user, host string, jumphost config.SSHJumpHost) []string {
351 return buildSSHArgsBase(user, host, jumphost)
352}
353
354func buildSSHArgsBase(user, host string, jumphost config.SSHJumpHost) []string {
355 var args []string

Callers 4

runNodesShellFunction · 0.92
runLXCShellFunction · 0.92
runQEMUShellFunction · 0.92
InstallScriptWithOptionsFunction · 0.92

Calls 1

buildSSHArgsBaseFunction · 0.85

Tested by

no test coverage detected