[PR #3086] feat: edit the SSH connection settings of a self hosted server #3071

Open
opened 2026-10-15 04:07:18 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amnezia-vpn/amnezia-client/pull/3086
Author: @WkdXeqtr
Created: 8/28/2026
Status: 🔄 Open

Base: dev ← Head: feat/edit-server-ssh-credentials


📝 Commits (1)

  • 94f9b27 feat: edit the SSH connection settings of a self hosted server

📊 Changes

10 files changed (+286 additions, -0 deletions)

View changed files

📝 client/core/controllers/serversController.cpp (+24 -0)
📝 client/core/controllers/serversController.h (+4 -0)
📝 client/ui/controllers/selfhosted/installUiController.cpp (+22 -0)
📝 client/ui/controllers/selfhosted/installUiController.h (+5 -0)
📝 client/ui/controllers/serversUiController.cpp (+40 -0)
📝 client/ui/controllers/serversUiController.h (+7 -0)
➕ client/ui/qml/Pages2/PageSettingsServerCredentials.qml (+168 -0)
📝 client/ui/qml/Pages2/PageSettingsServerData.qml (+14 -0)
📝 client/ui/qml/qml.qrc (+1 -0)
📝 client/ui/utils/pageEnum.h (+1 -0)

📄 Description

Once a server is added there is no way to change the SSH user name, port or password the application uses to manage it. If any of them changes on the server, installing protocols and services, rebooting and clearing it stop working, and the only way out is to remove the server and add it again.

This adds an "SSH connection" entry to the server management tab, for self hosted servers only. User name and port are editable; the stored secret is never handed to QML and can only be replaced, and leaving that field empty keeps the current one, so the port can be fixed without retyping it.

Everything is tried against the server before it is saved, through the same InstallController::checkSshConnection the setup wizard runs. If it fails nothing is stored and the page stays open with the values filled in.

The address is shown but not editable: it is also baked into the generated protocol configs, so changing it here would leave management and the VPN pointing at different hosts. A server that moved still has to be added again.

I have no Qt toolchain on this machine, so this is checked by reading the code and with qmllint. The screenshots are the real QML rendered in a bare Qt Quick window.

Management tab The page
management tab ssh connection page

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/amnezia-vpn/amnezia-client/pull/3086 **Author:** [@WkdXeqtr](https://github.com/WkdXeqtr) **Created:** 8/28/2026 **Status:** 🔄 Open **Base:** `dev` ← **Head:** `feat/edit-server-ssh-credentials` --- ### 📝 Commits (1) - [`94f9b27`](https://github.com/amnezia-vpn/amnezia-client/commit/94f9b27075fedd234bc74d4f1b2bc090523832d5) feat: edit the SSH connection settings of a self hosted server ### 📊 Changes **10 files changed** (+286 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `client/core/controllers/serversController.cpp` (+24 -0) 📝 `client/core/controllers/serversController.h` (+4 -0) 📝 `client/ui/controllers/selfhosted/installUiController.cpp` (+22 -0) 📝 `client/ui/controllers/selfhosted/installUiController.h` (+5 -0) 📝 `client/ui/controllers/serversUiController.cpp` (+40 -0) 📝 `client/ui/controllers/serversUiController.h` (+7 -0) ➕ `client/ui/qml/Pages2/PageSettingsServerCredentials.qml` (+168 -0) 📝 `client/ui/qml/Pages2/PageSettingsServerData.qml` (+14 -0) 📝 `client/ui/qml/qml.qrc` (+1 -0) 📝 `client/ui/utils/pageEnum.h` (+1 -0) </details> ### 📄 Description Once a server is added there is no way to change the SSH user name, port or password the application uses to manage it. If any of them changes on the server, installing protocols and services, rebooting and clearing it stop working, and the only way out is to remove the server and add it again. This adds an "SSH connection" entry to the server management tab, for self hosted servers only. User name and port are editable; the stored secret is never handed to QML and can only be replaced, and leaving that field empty keeps the current one, so the port can be fixed without retyping it. Everything is tried against the server before it is saved, through the same InstallController::checkSshConnection the setup wizard runs. If it fails nothing is stored and the page stays open with the values filled in. The address is shown but not editable: it is also baked into the generated protocol configs, so changing it here would leave management and the VPN pointing at different hosts. A server that moved still has to be added again. I have no Qt toolchain on this machine, so this is checked by reading the code and with qmllint. The screenshots are the real QML rendered in a bare Qt Quick window. | Management tab | The page | | --- | --- | | ![management tab](https://raw.githubusercontent.com/WkdXeqtr/amnezia-client/pr-screens-tv-focus/screens/ssh_menu.png) | ![ssh connection page](https://raw.githubusercontent.com/WkdXeqtr/amnezia-client/pr-screens-tv-focus/screens/ssh_page.png) | --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
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
amnezia-vpn/amnezia-client#3071
No description provided.