Open totorofly opened 2 years ago
Does the issue #83 answers your question?
It should be fixed by adapting the manifest with the solution provided:
containers:
- name: sftp
image: atmoz/sftp:debian
command: ["/bin/sh", "-c" , "sed -i -e 's#ForceCommand internal-sftp#ForceCommand internal-sftp -d /upload#' /etc/ssh/sshd_config && /entrypoint"]
I installed the sftp container into k8s
The user logged in through sftp -P 22 epay@10.11.14.217
I hope user does not see all the folders in the home/usera directory,After the user logs in through sftp,how to let user can only see /home/usera/upload directory?