Termix-SSH / Termix-SSH/Support
[BUG] Proxmox guest import fails when using a default credential
Nobody has claimed this yet.
- 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
- Create a saved SSH credential
- Create/configure a Proxmox host in Termix and verify that SSH connectivity works
- Enable the Proxmox integration on that host
- Configure the guest defaults as:
- Default Auth Type: Credential
- Default Credential: termix-root
- Run Proxmox guest discovery
- Select any discovered guest and click Import 1 host
- The import fails with: Host 1: Username required for SSH connections
- Change the Proxmox default guest authentication to:
- Auth Type: None
- Username: root
- Import the same guest again.
- The guest is now imported successfully.
Additional Context
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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