amnezia-vpn/amnezia-client

Install sftp error (and openssl key recognition)

barsikus007 opened this issue · 8 comments

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

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.

Up, same error. Ubuntu 22.04

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

Same error. Ubuntu 22.04

okay, I realized issue

it works ONLY at root
this is unsecure as f

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

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.

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