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

Function ExecuteNodeShell

internal/ssh/client.go:107–109  ·  view source on GitHub ↗

ExecuteNodeShell opens an interactive SSH session to a Proxmox node. This is a convenience function that uses the default executor and context. For more control over execution, use ExecuteNodeShellWith. Parameters: - user: SSH username for authentication - nodeIP: IP address or hostname of the tar

(user, nodeIP string, jumphost config.SSHJumpHost)

Source from the content-addressed store, hash-verified

105//
106// Returns an error if the SSH connection fails.
107func ExecuteNodeShell(user, nodeIP string, jumphost config.SSHJumpHost) error {
108 return ExecuteNodeShellWith(context.Background(), NewDefaultExecutor(), user, nodeIP, jumphost)
109}
110
111// ExecuteNodeShellWith opens an interactive SSH session to a Proxmox node with custom execution context.
112//

Callers 1

openNodeShellMethod · 0.92

Calls 2

ExecuteNodeShellWithFunction · 0.85
NewDefaultExecutorFunction · 0.85

Tested by

no test coverage detected