[GH-ISSUE #922] Uninformative error messages when trying to share a connection #261

Open
opened 2026-10-14 03:17:17 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @cnt0 on GitHub (Aug 3, 2024).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/922

Describe the bug
Hello. I tried to share an AmneziaWG connection to my VPS and got an error code 300. The reason is that I rotated the password on that VPS after setting up the initial AmneziaWG server.

So I figured that out, restored the password and tried to do that again. After scanning the QR code on other device (I used the one for AmneziaWG app) I got some parsing error mentioning the Peer field. I had to reinstall the server on my VPS to fix that.

So after all of that, I finally managed to share my VPN connection. IMO there's a couple of issues:

  1. There's no way (at least I can't find it) to change that password in amnezia client. So it'd be good to have that option. And, even better, I'm thinking about OpenKeychain integration.
  2. The error message isn't helpful enough, at least for me. Maybe at least add something like "please check ssh password or private key you used during the initial setup"?
  3. Apparently there were some breaking changes in AmneziaWG qr code format. Can you please make them more visible for end users? And again, vague error messages.

To Reproduce
Steps to reproduce the behavior:

  1. Set up an AmneziaWG server on your own VPS using your ssh password
  2. Rotate the password or turn off PasswordAuthentication on that server
  3. Try sharing a connection in amnezia client
  4. See error

Expected behavior
I'd expect to see either helpful error message or no error at all thanks to OpenKeychain integration

Smartphone (please complete the following information):

  • Device: Honor 20
  • OS: Android 10
  • Version 4.6.0.4

Server (please complete the following information):

  • OS: Ubuntu 22.04
Originally created by @cnt0 on GitHub (Aug 3, 2024). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/922 **Describe the bug** Hello. I tried to share an AmneziaWG connection to my VPS and got an [error code 300](https://docs.amnezia.org/troubleshooting/error-codes/#error-300-sshrequestdeniederror). The reason is that I rotated the password on that VPS after setting up the initial AmneziaWG server. So I figured that out, restored the password and tried to do that again. After scanning the QR code on other device (I used the one for AmneziaWG app) I got some parsing error mentioning the `Peer` field. I had to reinstall the server on my VPS to fix that. So after all of that, I finally managed to share my VPN connection. IMO there's a couple of issues: 1. There's no way (at least I can't find it) to change that password in amnezia client. So it'd be good to have that option. And, even better, I'm thinking about [OpenKeychain](https://www.openkeychain.org/) integration. 2. The error message isn't helpful enough, at least for me. Maybe at least add something like "please check ssh password or private key you used during the initial setup"? 3. Apparently there were some breaking changes in AmneziaWG qr code format. Can you please make them more visible for end users? And again, vague error messages. **To Reproduce** Steps to reproduce the behavior: 1. Set up an AmneziaWG server on your own VPS using your ssh password 4. Rotate the password or turn off `PasswordAuthentication` on that server 5. Try sharing a connection in amnezia client 6. See error **Expected behavior** I'd expect to see either helpful error message or no error at all thanks to OpenKeychain integration **Smartphone (please complete the following information):** - Device: Honor 20 - OS: Android 10 - Version 4.6.0.4 **Server (please complete the following information):** - OS: Ubuntu 22.04
Author
Owner

@vicclln commented on GitHub (Feb 9, 2025):

Thank you for your submit, had this error too after changing my user password on the server. Reverted back, now it's working again.

<!-- gh-comment-id:2646199366 --> @vicclln commented on GitHub (Feb 9, 2025): Thank you for your submit, had this error too after changing my user password on the server. Reverted back, now it's working again.
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#261
No description provided.