Score:0

SFTP : How can I allow one user to do sftp and ssh and see all folders?

cf flag

I have an SFTP server where I would like to authorize one user to do ssh and sftp and be able to see all folders of all users. It should be the admin.

For all the other users, they should only do sftp and only have access to their home.

Docker image used is SFTP Alpine linux 3.8.2 with OpenSSH.

My sshd_config is :

Subsystem sftp internal-sftp -f AUTH -1 VERBOSE
Protocol2
HostKey /etc/ssh/ssh_host_ed25519_key
HostKey /etc/ssh/ssh_host_rsa_key
UseDNS no
# Limited access
PermitRootLogin no
X11Forwarding no
AllowTcpForwarding no
# Force sftp and chroot jail
Subsystem sftp internal-sftp
ForceCommand internal-sftp
ChrootDirectory %h

How do I have to configure it ? Not sure if it is the sshd_config that needs modifications.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.