amnezia-vpn / amnezia-client

Amnezia VPN Client (Desktop+Mobile)
https://amnezia.org
GNU General Public License v3.0
4.47k stars 291 forks source link

Install sftp error (and openssl key recognition) #428

Open barsikus007 opened 10 months ago

barsikus007 commented 10 months ago

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:

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):

Server (please complete the following information):

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

GeliusIHe commented 10 months ago

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.

ANGIPO commented 10 months ago

Up, same error. Ubuntu 22.04

KotaruProject commented 10 months ago

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

wolfhound234 commented 10 months ago

Same error. Ubuntu 22.04

barsikus007 commented 10 months ago

okay, I realized issue

it works ONLY at root this is unsecure as f

ANGIPO commented 10 months ago

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

nkz-soft commented 9 months ago

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.

RomikB commented 6 months ago

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