[GH-ISSUE #72] [Bug]: "Use sudo for privileged commands" toggle does not persist after saving SSH configuration #96

Closed
opened 2026-03-07 19:27:34 +03:00 by kerem · 0 comments
Owner

Originally created by @Psycs on GitHub (Mar 5, 2026).
Original GitHub issue: https://github.com/adminsyspro/proxcenter-ui/issues/72

Bug Description

The "Use sudo for privileged commands" toggle in the SSH configuration does not save correctly. After enabling the toggle and saving, it reverts to disabled. This causes rolling updates to fail with permission denied errors when using a non-root SSH user, as commands like apt-get update are executed without the sudo prefix.

Image

Steps to Reproduce

  1. Navigate to a Proxmox cluster settings in ProxCenter
  2. Scroll down to the SSH Access section
  3. Enable the "Enable SSH access" toggle
  4. Set Authentication method to SSH Private Key
  5. Using a non-root username
  6. Insert SSH private key
  7. Enable the "Use sudo for privileged commands" toggle
  8. Click Save
  9. Re-open the cluster SSH settings

Expected Behavior

The "Use sudo for privileged commands" toggle remains enabled after saving

Actual Behavior

The "Use sudo for privileged commands" toggle reverts to disabled every time the settings are saved, regardless of its state when saving

ProxCenter Version

85dd35d

Proxmox VE Version

9.0.10-9.0

Browser

Brave / Chrome / Edge / Firefox

Logs / Screenshots

No response

Originally created by @Psycs on GitHub (Mar 5, 2026). Original GitHub issue: https://github.com/adminsyspro/proxcenter-ui/issues/72 ### Bug Description The "Use sudo for privileged commands" toggle in the SSH configuration does not save correctly. After enabling the toggle and saving, it reverts to disabled. This causes rolling updates to fail with permission denied errors when using a non-root SSH user, as commands like apt-get update are executed without the sudo prefix. <img width="524" height="120" alt="Image" src="https://github.com/user-attachments/assets/0e3d9515-6fe5-4aa9-86ba-6762fc1070b8" /> ### Steps to Reproduce 1. Navigate to a Proxmox cluster settings in ProxCenter 2. Scroll down to the SSH Access section 3. Enable the "Enable SSH access" toggle 4. Set Authentication method to SSH Private Key 5. Using a non-root username 6. Insert SSH private key 7. Enable the "Use sudo for privileged commands" toggle 8. Click Save 9. Re-open the cluster SSH settings ### Expected Behavior The "Use sudo for privileged commands" toggle remains enabled after saving ### Actual Behavior The "Use sudo for privileged commands" toggle reverts to disabled every time the settings are saved, regardless of its state when saving ### ProxCenter Version 85dd35d ### Proxmox VE Version 9.0.10-9.0 ### Browser Brave / Chrome / Edge / Firefox ### Logs / Screenshots _No response_
kerem 2026-03-07 19:27:34 +03:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxcenter-ui#96
No description provided.