parlays
asked on
How do I restrict SFTP users access to a specific directory?
Hello everybody!
I decided to not use FTP so I don't have to open up port 21, and use SFTP instead. It works great for me, I use my SSH login. But I want to set it up for someone else and let them only access the directory with their website, which is "/var/www/website".
So I want to add a new user, that can only access the server via SFTP, and when they log in using an SFTP client, they go straight to that directory and can only go into its subdirectories, not the parent directories.
thanks
I decided to not use FTP so I don't have to open up port 21, and use SFTP instead. It works great for me, I use my SSH login. But I want to set it up for someone else and let them only access the directory with their website, which is "/var/www/website".
So I want to add a new user, that can only access the server via SFTP, and when they log in using an SFTP client, they go straight to that directory and can only go into its subdirectories, not the parent directories.
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.