Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amnezia VPN client fails to connect to the server with an RSA 3072 key #887

Open
rominf opened this issue Jul 8, 2024 · 1 comment
Open

Comments

@rominf
Copy link

rominf commented Jul 8, 2024

Describe the bug
The AmneziaVPN client fails to connect to the server with an RSA 3072 key. The GUI displays ErrorCode: 101. Internal error, and in the console failed to export private key is printed.

To Reproduce
Steps to reproduce the behavior:

  1. Generate RSA 3072 key using ssh-keygen -t rsa command (in my tests, the passphrase length or its absence does not matter).
  2. Set up a server in the cloud with the key from previous step added for the root user .
  3. Ensure ssh can connect to the server from the PC.
  4. Install AmneziaVPN on the PC.
  5. Launch AmneziaVPN.
  6. Click the "+" icon.
  7. Click "Configure your server".
  8. Fill in the IP-address, SSH username (root), and enter the RSA 3072 SSH private key (same as in step (1)).
  9. Click "Continue".
  10. (Optional, see (1)) Enter passphrase.
  11. (Optional, see previous step) Click "Save".
  12. Observe errors in the GUI, console, and logs.

Expected behavior
The AmneziaVPN client connects to the server.

Log files

2024-07-08 16:23:48 info Logging has enabled on AmneziaVPN version 4.5.3.0 eb48e4b
2024-07-08 16:23:48 info Fedora Linux 40 (KDE Plasma) (x86_64)
2024-07-08 16:24:24 debug QML onClosing signal
2024-07-08 16:24:30 info Started AmneziaVPN version 4.5.3.0 eb48e4b
2024-07-08 16:24:30 info Fedora Linux 40 (KDE Plasma) (x86_64)
2024-07-08 16:25:23 debug failed to export private key

Screenshots
(IP address is removed using a graphics editor)

Screenshot_20240708_161538

Desktop (please complete the following information):

  • OS: Fedora 40
  • Version: 4.5.3.0

Smartphone (please complete the following information):

  • Device: irrelevant
  • OS: irrelevant
  • Version: irrelevant

Server (please complete the following information):

  • OS: Ubuntu 22.04

Additional context
I found that the length of the SSH key passphrase or its absence does not matter. Adding an ED25519 key to the server and entering it into AmneziaVPN results in expected connection.

@jinnko
Copy link

jinnko commented Jul 24, 2024

Same issue with RSA key.

With ed25519 key rather than an error the UI just hangs after hitting save on the "Private key passphrase" input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants