Termix-SSH / Termix-SSH/Support

[BUG] Proxmox guest import fails when using a default credential

Open
#1,270 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auth bug platform-proxmox platform-web ssh
Dominant language
No language data
Stars
28
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Title

Proxmox guest import fails with "Username required for SSH connections" when using a credential

Platform

Website - Firefox

Server Installation Method

Proxmox (Community Scripts)

Version

2.7.1

CLI Installation Method

None

CLI Version

No response

Troubleshooting
  • I have examined logs and tried to find the issue
  • I have reviewed opened and closed issues
  • I have tried restarting the application
  • I have checked open issues and ensured this is not a duplicate
The Problem

When importing guests discovered through the Proxmox integration, the import fails if the Proxmox host is configured to use a saved credential as the default guest authentication method.

I have a saved credential containing:

  • Username: root
  • Authentication: SSH private key

The Proxmox host itself connects successfully using this credential and Proxmox discovery also works correctly. All guests, VMIDs, statuses and IP addresses are discovered. However, when I configure the Proxmox integration with:

  • Default Auth Type: Credential
  • Default Credential: termix-root

and try to import any discovered guest, the import fails. The bulk import API response is:

Import completed: 0 created, 0 updated, 1 failed

success: 0
updated: 0
skipped: 0
failed: 1
errors:

  • Host 1: Username required for SSH connections

If I change the default authentication type to None and keep the default username as root, the exact same guest imports successfully.
After importing it with authentication set to None, I can manually edit the host, assign the credential, and SSH authentication works correctly once the public key is installed on the guest.
Therefore the credential itself and SSH configuration appear to be valid; the issue seems specific to the Proxmox import path when using credential-based authentication.

How to Reproduce
  1. Create a saved SSH credential
  2. Create/configure a Proxmox host in Termix and verify that SSH connectivity works
  3. Enable the Proxmox integration on that host
  4. Configure the guest defaults as:
    • Default Auth Type: Credential
    • Default Credential: termix-root
  5. Run Proxmox guest discovery
  6. Select any discovered guest and click Import 1 host
  7. The import fails with: Host 1: Username required for SSH connections
  8. Change the Proxmox default guest authentication to:
  • Auth Type: None
  • Username: root
  1. Import the same guest again.
  2. The guest is now imported successfully.
Additional Context

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Proxmox guest discovery and bulk import API entry points, then compare how the import path handles Default Auth Type: Credential versus None. Reproduce the failure with a saved SSH credential and verify that the imported guest receives the credential's username and imports successfully.

Written by the indexing model from the issue text.

Assessment

Domain
api, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.