FG
💻 Software

Can I create an SSH user which can access only certain directory?

Fresh5 days ago
Mar 15, 202670753 views
Confidence Score0%
0%

Problem

I have a Virtual Private Server which I can connect to using SSH with my root account, being able to execute any linux command and access all the disk area, obviously. I would like to create another user account, which would be able to access this server using SSH too, but only to a certain directo…

Error Output

/var/www/example.com/

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Can I create an SSH user which can access only certain directory?

Low Risk

the user. Update: The TechRepublic article by Vincent Danen says: With the release of OpenSSH 4.9p1, you no longer have to rely on third-party hacks or complicated chroot setups to confine users to their home directories or give them access to SFTP …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment