Chrooted SFTP permissions problem
Hi there
I am trying to set up backups for different users. In sshd_config I want to enter Match User user1 ChrootDirectory /home/user1 AllowTCPForwarding no X11Forwarding no ForceCommand internal-sftp however the permissions on the user1 folder need to be changed somehow. If I enter Match User user1 ChrootDirectory /home/ AllowTCPForwarding no X11Forwarding no ForceCommand internal-sftp then it works, but the user can see who else is in the home directory, which I don't want. How would I go about changing the permissions for the user1 home directory so that this would work in the top example? |
Change the subsystem location on /etc/ssh/sshd_config
Quote:
Quote:
Quote:
|
eklavya you are amazing. when I first did it I was unable to copy to that folder so I changed the permissions to 777. Its working well now, I can sftp to the home directory and the user can't ssh into the vm, or see any of the parent directories!
|
Ok I am having another problem with this, if I use
Quote:
Quote:
|
Read this once (last post by onggie). It is for ubuntu but concept is same.
http://askubuntu.com/questions/28089...p-denies-login |
All times are GMT -5. The time now is 03:36 PM. |