amnezia-vpn / amnezia-client

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

SFTP Permission denied for custom user #838

Closed maxbolgarin closed 3 weeks ago

maxbolgarin commented 1 month ago

Describe the bug When I want to set up VPN server with user amnezia, I got the error: ErrorCode: 402. Sftp error: Permission denied

To Reproduce Steps to reproduce the behavior:

  1. sudo adduser amnezia
  2. sudo usermod -aG sudo amnezia
  3. Open Amnezia App -> I have the data to connect -> Configure your server
  4. Enter IP, amnezia and password for user, press continue, select Medium -> Continue
  5. After 5 sec of Installing got error ErrorCode: 402. Sftp error: Permission denied

Expected behavior Installed server

Log files My ssh config:

Include /etc/ssh/sshd_config.d/*.conf
PermitRootLogin no
PubkeyAuthentication yes
PasswordAuthentication yes
KbdInteractiveAuthentication no
UsePAM yes
X11Forwarding yes
PrintMotd no
AcceptEnv LANG LC_*
Subsystem   sftp    /usr/lib/openssh/sftp-server

Desktop:

Server:

pokamest commented 1 month ago

What is Amnezia version?

maxbolgarin commented 1 month ago

What is Amnezia version?

4.4.0.0

pokamest commented 3 weeks ago

In the 4.5.3 sftp is not more used for file transferring between server and client (it replaced by scp). Please update to 4.5.3.