[GH-ISSUE #914] Connection failure via ssh private key during server setup #256

Closed
opened 2026-10-13 20:17:07 +00:00 by bsakaguchi · 6 comments
Owner

Originally created by @enikolaevic on GitHub (Jul 27, 2024).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/914

Try to add new connection to server via private ssh key, after entering all the data click continue get ErrorCode 101 InternalError
Addtional info about ssh key:
Copy content from pem file ~/.ssh/{{ file_name}} and paste in form for password/ssh private key

Logs:
2024-07-27 18:55:58 info Started AmneziaVPN version 4.6.0.3 3f90ee91
2024-07-27 18:55:58 info macOS 14.4 (x86_64)
2024-07-27 18:55:58 info SSL backend: Secure Transport, macOS 14.4
2024-07-27 18:56:31 warning OpenType support missing for "PT Root UI VF", script 11
2024-07-27 18:56:31 warning OpenType support missing for "PT Root UI VF", script 11
2024-07-27 18:57:24 debug failed to export private key

Desktop:

  • OS: MacOS Sonoma 14.4.1
  • Version 4.6.0.3

Server:

  • OS: Ubuntu 18.04.6 LTS
Originally created by @enikolaevic on GitHub (Jul 27, 2024). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/914 Try to add new connection to server via private ssh key, after entering all the data click continue get ErrorCode 101 InternalError Addtional info about ssh key: Copy content from pem file ~/.ssh/{{ file_name}} and paste in form for password/ssh private key Logs: 2024-07-27 18:55:58 info Started AmneziaVPN version 4.6.0.3 3f90ee91 2024-07-27 18:55:58 info macOS 14.4 (x86_64) 2024-07-27 18:55:58 info SSL backend: Secure Transport, macOS 14.4 2024-07-27 18:56:31 warning OpenType support missing for "PT Root UI VF", script 11 2024-07-27 18:56:31 warning OpenType support missing for "PT Root UI VF", script 11 2024-07-27 18:57:24 debug failed to export private key **Desktop:** - OS: MacOS Sonoma 14.4.1 - Version 4.6.0.3 **Server:** - OS: Ubuntu 18.04.6 LTS
Author
Owner

@a-petrovich commented on GitHub (Aug 15, 2024):

Same issue here. Error 101. It's the same using private key with or without passphrase.
Can only connect with user/pass but really want to disable it.

<!-- gh-comment-id:2290864034 --> @a-petrovich commented on GitHub (Aug 15, 2024): Same issue here. Error 101. It's the same using private key with or without passphrase. Can only connect with user/pass but really want to disable it.
Author
Owner

@tannisroot commented on GitHub (Aug 31, 2024):

I have the same issue

<!-- gh-comment-id:2322612315 --> @tannisroot commented on GitHub (Aug 31, 2024): I have the same issue
Author
Owner

@skand888 commented on GitHub (Sep 19, 2024):

Looks like the SSH key in this format is not accepted:

-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAACFwAAAAdzc2gtcn
...
-----END OPENSSH PRIVATE KEY-----

Does it require another format?

If SSH key is not supported at all, I'd suggest removing it from the input label to avoid confusion.

<!-- gh-comment-id:2360430628 --> @skand888 commented on GitHub (Sep 19, 2024): Looks like the SSH key in this format is not accepted: ``` -----BEGIN OPENSSH PRIVATE KEY----- b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAACFwAAAAdzc2gtcn ... -----END OPENSSH PRIVATE KEY----- ``` Does it require another format? If SSH key is not supported at all, I'd suggest removing it from the input label to avoid confusion.
Author
Owner

@enikolaevic commented on GitHub (Sep 20, 2024):

For me works keys with elliptic curve types.

<!-- gh-comment-id:2363160040 --> @enikolaevic commented on GitHub (Sep 20, 2024): For me works keys with elliptic curve types.
Author
Owner

@a-stankevich commented on GitHub (Nov 18, 2024):

Didn't work with ssh-keygen.
Works with ssh-keygen -t ecdsa

<!-- gh-comment-id:2483052134 --> @a-stankevich commented on GitHub (Nov 18, 2024): Didn't work with `ssh-keygen`. Works with `ssh-keygen -t ecdsa`
Author
Owner

@Nethius commented on GitHub (Feb 21, 2025):

Thank you for your report. Please note that GitHub is not a support channel. For assistance, please contact our support team via chat at https://t.me/amnezia_support_bot or via email at support@amnezia.org.

Our team will review the details and help resolve the issue.

<!-- gh-comment-id:2674739917 --> @Nethius commented on GitHub (Feb 21, 2025): Thank you for your report. Please note that GitHub is not a support channel. For assistance, please contact our support team via chat at https://t.me/amnezia_support_bot or via email at [support@amnezia.org](mailto:support@amnezia.org). Our team will review the details and help resolve the issue.
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#256
No description provided.