[GH-ISSUE #428] Install sftp error (and openssl key recognition) #129

Closed
opened 2026-10-13 20:13:22 +00:00 by bsakaguchi · 8 comments
Owner

Originally created by @barsikus007 on GitHub (Nov 16, 2023).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/428

Describe the bug
A clear and concise description of what the bug is.
I tried install Amnezia and got 2 errors
First one was ssh key error, so I enabled password auth and used password
Second one in strange Sftp error: File does not exist when I tried to install any of suggested VPNs

To Reproduce
Steps to reproduce the behavior:

  • Follow usual install flow
  • Any protocol raises same Sftp error

Expected behavior
A clear and concise description of what you expected to happen.
Successful installation

Log files
2023-11-16 14:01:33 debug buildContainerWorker start
2023-11-16 14:01:33 critical SFTP server: No such file

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • Windows and andriod version 4.0.8

Server (please complete the following information):

  • Ubuntu 20.04

Additional context
Also, my rsa key (generated by ssh-keygen) won't accept by application
why?
image

Originally created by @barsikus007 on GitHub (Nov 16, 2023). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/428 **Describe the bug** A clear and concise description of what the bug is. I tried install Amnezia and got 2 errors First one was ssh key error, so I enabled password auth and used password Second one in strange `Sftp error: File does not exist` when I tried to install any of suggested VPNs **To Reproduce** Steps to reproduce the behavior: - Follow usual install flow - Any protocol raises same Sftp error **Expected behavior** A clear and concise description of what you expected to happen. Successful installation **Log files** 2023-11-16 14:01:33 debug buildContainerWorker start 2023-11-16 14:01:33 critical SFTP server: No such file **Screenshots** If applicable, add screenshots to help explain your problem. ![image](https://github.com/amnezia-vpn/amnezia-client/assets/37113583/590d7489-7a04-43a6-82a1-a1e03111bd35) **Desktop (please complete the following information):** - Windows and andriod version 4.0.8 **Server (please complete the following information):** - Ubuntu 20.04 **Additional context** Also, my rsa key (generated by ssh-keygen) won't accept by application why? ![image](https://github.com/amnezia-vpn/amnezia-client/assets/37113583/ad6ace1e-6a33-4605-a083-b77d4d14cf52)
Author
Owner

@GeliusIHe commented on GitHub (Nov 17, 2023):

Same problem with sftp error. However, I get this error only on the Ubuntu server, which is under wsl2. If the main server is Ubuntu, everything is fine.

<!-- gh-comment-id:1816737958 --> @GeliusIHe commented on GitHub (Nov 17, 2023): Same problem with sftp error. However, I get this error only on the Ubuntu server, which is under wsl2. If the main server is Ubuntu, everything is fine.
Author
Owner

@FRAXIS77 commented on GitHub (Nov 20, 2023):

Up, same error. Ubuntu 22.04

<!-- gh-comment-id:1819449443 --> @FRAXIS77 commented on GitHub (Nov 20, 2023): Up, same error. Ubuntu 22.04
Author
Owner

@KotaruProject commented on GitHub (Nov 23, 2023):

Подтверждаю, та же ошибка Ubuntu 22.04.2 LTS

<!-- gh-comment-id:1824901959 --> @KotaruProject commented on GitHub (Nov 23, 2023): Подтверждаю, та же ошибка Ubuntu 22.04.2 LTS
Author
Owner

@wolfhound234 commented on GitHub (Nov 29, 2023):

Same error. Ubuntu 22.04

<!-- gh-comment-id:1831984583 --> @wolfhound234 commented on GitHub (Nov 29, 2023): Same error. Ubuntu 22.04
Author
Owner

@barsikus007 commented on GitHub (Dec 1, 2023):

okay, I realized issue

it works ONLY at root
this is unsecure as f

<!-- gh-comment-id:1836009461 --> @barsikus007 commented on GitHub (Dec 1, 2023): okay, I realized issue it works ONLY at root this is unsecure as f
Author
Owner

@nkz-soft commented on GitHub (Jan 4, 2024):

solution:

1. open ssh cfg:
   sudo nano /etc/ssh/sshd_config

2. uncomment "PermitRootLogin yes" (delete #)

3. set password for root:
   passwd root

4. authorization in the amnezia vpn program via root

In my opinion, this is a serious security issue. It's best to use a separate user and key instead of logging in as root on your server.

<!-- gh-comment-id:1876724784 --> @nkz-soft commented on GitHub (Jan 4, 2024): > solution: > > 1. open ssh cfg: > sudo nano /etc/ssh/sshd_config > > 2. uncomment "PermitRootLogin yes" (delete #) > > 3. set password for root: > passwd root > > 4. authorization in the amnezia vpn program via root In my opinion, this is a serious security issue. It's best to use a separate user and key instead of logging in as root on your server.
Author
Owner

@RomikB commented on GitHub (Mar 5, 2024):

Same error. Ubuntu 22.04. Amnezia 4.4.0.0
User is not root but with sudo.

<!-- gh-comment-id:1979747379 --> @RomikB commented on GitHub (Mar 5, 2024): Same error. Ubuntu 22.04. Amnezia 4.4.0.0 User is not root but with sudo.
Author
Owner

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

Thank you for your report. Please contact our support team via chat at https://t.me/amnezia_support_bot or via email at support@amnezia.org. It would be helpful if you could include a link to this issue in your message.

Our team will review the details and assist you in resolving the problem.

<!-- gh-comment-id:2671735342 --> @Nethius commented on GitHub (Feb 20, 2025): Thank you for your report. 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). It would be helpful if you could include a link to this issue in your message. Our team will review the details and assist you in resolving the problem.
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#129
No description provided.