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

Function ExecuteQemuShell

internal/ssh/client.go:293–295  ·  view source on GitHub ↗

ExecuteQemuShell attempts to connect to a QEMU VM using SSH directly. This function connects directly to the VM's IP address rather than going through the Proxmox node. The VM must have network connectivity and SSH service running. This is a convenience function that uses the default executor and

(user, vmIP string, jumphost config.SSHJumpHost)

Source from the content-addressed store, hash-verified

291//
292// Returns an error if the VM IP is empty or if the SSH connection fails.
293func ExecuteQemuShell(user, vmIP string, jumphost config.SSHJumpHost) error {
294 return ExecuteQemuShellWith(context.Background(), NewDefaultExecutor(), user, vmIP, jumphost)
295}
296
297// ExecuteQemuShellWith attempts to connect to a QEMU VM using SSH with custom execution context.
298//

Callers 1

openVMShellMethod · 0.92

Calls 2

ExecuteQemuShellWithFunction · 0.85
NewDefaultExecutorFunction · 0.85

Tested by

no test coverage detected