[GH-ISSUE #838] SFTP Permission denied for custom user #218

Closed
opened 2026-10-13 20:15:41 +00:00 by bsakaguchi · 3 comments
Owner

Originally created by @maxbolgarin on GitHub (Jun 3, 2024).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/838

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:

  • Mac OS Sonoma 14.3.1 (23D60)

Server:

  • Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-105-generic x86_64)
Originally created by @maxbolgarin on GitHub (Jun 3, 2024). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/838 **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:** - Mac OS Sonoma 14.3.1 (23D60) **Server:** - Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-105-generic x86_64)
Author
Owner

@pokamest commented on GitHub (Jun 3, 2024):

What is Amnezia version?

<!-- gh-comment-id:2145086470 --> @pokamest commented on GitHub (Jun 3, 2024): What is Amnezia version?
Author
Owner

@maxbolgarin commented on GitHub (Jun 4, 2024):

What is Amnezia version?

4.4.0.0

<!-- gh-comment-id:2146697054 --> @maxbolgarin commented on GitHub (Jun 4, 2024): > What is Amnezia version? 4.4.0.0
Author
Owner

@pokamest commented on GitHub (Jun 11, 2024):

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.

<!-- gh-comment-id:2161783047 --> @pokamest commented on GitHub (Jun 11, 2024): 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.
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#218
No description provided.