Unable to set the SSH key via UI in PMM Server
Description
How to test
How to document
Attachments
relates to
Smart Checklist
Activity

Aaditya Dubey July 24, 2023 at 11:56 AMEdited
Hi , ,
Thank you for the report.
Since this feature not meant for docker then user should have either option disabled or proper error should be seen. Improvement request being tracked here , Marking the report OPEN for reference.

Roma Novikov July 20, 2023 at 10:44 AM
I have created to track improvements. Let's keep the current one to ensure SSH works in the supported cases.

Alex Demidoff July 20, 2023 at 8:56 AMEdited
I can tell, this is no longer a bug, I'm not sure when it was fixed
FYI: this feature is meant to work only for our AMI and OVF distributions, not for docker. However, you will see this screen in docker as well, which may be super confusing for some users.
Solution? It's easy to detect the PMM distribution (the backend can read the contents of /srv/distribution) and hide the feature for docker. Simple.
Can we convert this ticket into an improvement?

Aaditya Dubey July 19, 2023 at 5:00 PM
Hi ,
Sure, thanks!

Denys Kondratenko October 26, 2022 at 10:19 AM
if I login to the container there is no "admin" user.
https://github.com/percona/pmm/blob/main/build/ansible/roles/cloud-node/tasks/main.yml#L82
looks like such user only created for the VMs ?
`admin` user is hard coded:
https://jira.percona.com/browse/PMM-4317
So the question is - is the doc confusing or we need that ansible role work for all the images?
Looks like not. Doc also mentions appliance:
https://docs.percona.com/percona-monitoring-and-management/how-to/configure.html#ssh-key
So it doesn't looks like a bug unless you see this issue in VM, but rather improvement to detect env and don't show this setting, or improve doc.
Problem:
I was unable to set the SSH key via UI on the PMM Server Settings UI.
Steps to reproduce:
go to https://pmm-server/graph/settings/ssh-key
paste a valid ssh key (public)
see the error below
This is what you see in `pmm-managed.log`: