amnezia-vpn / amnezia-client

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

Install sftp error (and openssl key recognition) #428

Open barsikus007 opened 1 year ago

barsikus007 commented 1 year 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 1 year 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 1 year ago

Up, same error. Ubuntu 22.04

KotaruProject commented 1 year ago

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

wolfhound234 commented 12 months ago

Same error. Ubuntu 22.04

barsikus007 commented 12 months ago

okay, I realized issue

it works ONLY at root this is unsecure as f

ANGIPO commented 11 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 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

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 8 months ago

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