Skip to content

pvetui guests exec <id> <commad> ssh authentication fails #101

@ristomatti

Description

@ristomatti

The newly added guests exec subcommand doesn't seem to find my SSH key. Does this need to be configured somewhere? I'm using the token based authentication.

$ pvetui guests exec 200 "ls /dev"
{"error":"exec failed on LXC 200: failed to connect to 192.168.5.11:22: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain"}
Error: exec failed on LXC 200: failed to connect to 192.168.5.11:22: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
Error: exec failed on LXC 200: failed to connect to 192.168.5.11:22: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

# No issue using ssh directly
$ ssh 192.168.5.11 "pct exec 200 ls /dev" | head -n 3
bus
console
core

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions