SFTP to Yunohost server - only a few random directories visible - what am I missing?

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: Latest V12.0.17
How are you able to access your server: SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: No

Describe your issue

Background
I’m sure this isn’t a bug, just down to user incompetence - mine! I’ve got 40 years of blue chip IT experience and now I’ve retired I get to play with the actual software/infrastructure bits that made me love the industry in the first place. Back in my day I was a Unix user and am now learning about Linux et al.

The issue
When I connect from an SFTP client device (be it my phone/windows PC or Linux desktop) I only see a few directories (e.g. Yunohost.app/ yunhost.backup/ yuohost.multimedia) I assume these are from the Nextcloud install on my Yunohost server. There must be something special set to make these directories visible, a sticky bit or some permission. I want to make my usb mounted directory visible (/usb1) I have set permission to 777 on it recursively but it does not appear to the SFTP client.

What am I missing? Apols if this is an obvious one but I have searched and searched and can’t seem to find a fix. Any help will be great!

Share relevant logs or error messages

only a limited set of directories are visible

Hi @tzb6js
Take a look at the /etc/ssh/sshd_config file and the configuration for the sftp.app group : this group is chrooted into /home/user

Sorry: there’s another group called sftp.main chrooted into /home

Depends on the user used to ssh. Did you use root?

yes I did log in as root, I know it’s not good practice but life is short …

I will check this out tomorrow , thanks for the insight.

What exactly is the list? No way to access parent directories ?
Logged in as root, you should have access to the… root.
Being chrooted into /home is the expected behavior when you set SFTP access for a user and log in as that user.

I cracked it. Cheers, thanks all for the insight.