Subusers can't connect to SFTP
Background : Panel or Daemon: Daemon Version of Panel/Daemon: 1.0 beta release 4 Server's OS: Debian 9 Your Computer's OS & Browser: Win 10 + Mozilla Firefox
Describe the bug Subusers can't connect to the SFTP with their logins and correct rights. Only panel admin can. Panel: PHP 7.4.5 Kernel info: Linux ns3018348 4.19-ovh-xxxx-std-ipv6-64 Docker info:
Client:
Debug Mode: false
Server:
Containers: 29
Running: 3
Paused: 0
Stopped: 26
Images: 11
Server Version: 19.03.8
Storage Driver: devicemapper
Pool Name: docker-8:2-7472688-pool
Pool Blocksize: 65.54kB
Base Device Size: 10.74GB
Backing Filesystem: xfs
Udev Sync Supported: true
Data file: /dev/loop0
Metadata file: /dev/loop1
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
Data Space Used: 3.822GB
Data Space Total: 107.4GB
Data Space Available: 71.45GB
Metadata Space Used: 21.29MB
Metadata Space Total: 2.147GB
Metadata Space Available: 2.126GB
Thin Pool Minimum Free Space: 10.74GB
Deferred Removal Enabled: true
Deferred Deletion Enabled: true
Deferred Deleted Device Count: 0
Library Version: 1.02.137 (2016-11-30)
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk s yslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 7ad184331fa3e55e52b890ea95e65ba581ae3429
runc version: dc9208a3303feef5b3839f4323d9beb36df0a9dd
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 4.19.0-ovh-xxxx-std-ipv6-64
Operating System: Debian GNU/Linux 9 (stretch)
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 31.34GiB
Name: ns3018348
ID: LCWP:2IBP:NBXS:AFFJ:QLZU:ADYY:NCB5:6RGL:73IH:5QG4:MPHC:YDCE
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support
WARNING: the devicemapper storage-driver is deprecated, and will be removed in a future release.
WARNING: devicemapper: usage of loopback devices is strongly discouraged for pro duction use.
Use `--storage-opt dm.thinpooldev` to specify a custom block storage de vice.
To Reproduce
- Upgrade wings and panel from 1.0 release 1 to 4
- Give access to use SFTP for subuser
- Try to connect with Filezilla and correct logins
Expected behavior Filezilla can't connect with logins to the SFTP
FileZilla error
Status: Connecting to panel.breakerland.fr:2022...
Status: Using username "azodfr.8fd72008".
Status: Connected to server.breakerland.fr
Status: Retrieving directory listing...
Status: Listing directory /
Error: Unknown eventType 37
Error: Failed to retrieve directory listing
Status: Disconnected from server
Status: Connecting to panel.breakerland.fr:2022...
Status: Using username "azodfr.8fd72008".
Status: Connected to server.breakerland.fr
Status: Retrieving directory listing...
Status: Listing directory /
Error: Unknown eventType 37
Error: Failed to retrieve directory listing
Wings error
1.5890637263005755e+09 error sftp [email protected]/server.go:84 encountered error validating user crendentials {"error": ": (HTTP/)", "errorVerbose": ": (HTTP/)
github.com/pterodactyl/wings/api.(*PanelRequest).ValidateSftpCredentials
/Users/dane/Sites/development/code/wings/api/sftp_endpoints.go:28
github.com/pterodactyl/wings/sftp.validateCredentials
/Users/dane/Sites/development/code/wings/sftp/server.go:78
github.com/pterodactyl/sftp-server.(*Server).Initalize.func1
/Users/dane/go/pkg/mod/github.com/pterodactyl/[email protected]/server.go:77
golang.org/x/crypto/ssh.(*connection).serverAuthenticate
/Users/dane/go/pkg/mod/golang.org/x/[email protected]/ssh/server.go:479
golang.org/x/crypto/ssh.(*connection).serverHandshake
/Users/dane/go/pkg/mod/golang.org/x/[email protected]/ssh/server.go:277
golang.org/x/crypto/ssh.NewServerConn
/Users/dane/go/pkg/mod/golang.org/x/[email protected]/ssh/server.go:206
github.com/pterodactyl/sftp-server.Server.AcceptInboundConnection
/Users/dane/go/pkg/mod/github.com/pterodactyl/[email protected]/server.go:144
runtime.goexit
/usr/local/Cellar/go/1.12.1/libexec/src/runtime/asm_amd64.s:1337
github.com/pterodactyl/wings/api.(*PanelRequest).ValidateSftpCredentials
/Users/dane/Sites/development/code/wings/api/sftp_endpoints.go:28
github.com/pterodactyl/wings/sftp.validateCredentials
/Users/dane/Sites/development/code/wings/sftp/server.go:78
github.com/pterodactyl/sftp-server.(*Server).Initalize.func1
/Users/dane/go/pkg/mod/github.com/pterodactyl/[email protected]/server.go:77
golang.org/x/crypto/ssh.(*connection).serverAuthenticate
/Users/dane/go/pkg/mod/golang.org/x/[email protected]/ssh/server.go:479
golang.org/x/crypto/ssh.(*connection).serverHandshake
/Users/dane/go/pkg/mod/golang.org/x/[email protected]/ssh/server.go:277
golang.org/x/crypto/ssh.NewServerConn
/Users/dane/go/pkg/mod/golang.org/x/[email protected]/ssh/server.go:206
github.com/pterodactyl/sftp-server.Server.AcceptInboundConnection
/Users/dane/go/pkg/mod/github.com/pterodactyl/[email protected]/server.go:144
runtime.goexit
/usr/local/Cellar/go/1.12.1/libexec/src/runtime/asm_amd64.s:1337"}
github.com/pterodactyl/sftp-server.(*Server).Initalize.func1
/Users/dane/go/pkg/mod/github.com/pterodactyl/[email protected]/server.go:84
golang.org/x/crypto/ssh.(*connection).serverAuthenticate
/Users/dane/go/pkg/mod/golang.org/x/[email protected]/ssh/server.go:479
golang.org/x/crypto/ssh.(*connection).serverHandshake
/Users/dane/go/pkg/mod/golang.org/x/[email protected]/ssh/server.go:277
golang.org/x/crypto/ssh.NewServerConn
/Users/dane/go/pkg/mod/golang.org/x/[email protected]/ssh/server.go:206
github.com/pterodactyl/sftp-server.Server.AcceptInboundConnection
/Users/dane/go/pkg/mod/github.com/pterodactyl/[email protected]/server.go:144
@Corenb as you are on OVH is the game firewall enabled?
I'm using UFW to manage firewall and I've allowed all connection on 2022 port. I've also tried to disable it and nothing change.
I didn't ask about UFW. I asked about the game firewall.
OVH likes to block connections to people who haven't reached the ip on port 80 before. That is what I have seen with the game firewall being on.
Oh sorry, yes i'm on OVH (SYS exactly) but I haven't game firewall enable (I can't install firewall with my service).
For information, I can personnaly access to the SFTP with my logins (I'm administrator). And if I turn my previous subuser to admin it work.