Skip to main content

Give access to specific directory via SSH key

Comments

3 comments

  • cPanelLauren
    You can't do this with SSH Keys, an ssh key provides user authentication and access it does not determine what the user has access to. The best way to do what you're requesting is to use an FTP account with limited access - when you create an FTP account you can specify the folder they have access to change things in. Information on this can be found here: FTP Accounts | cPanel & WHM Documentation
    0
  • greektranslator
    Thanks, that means I will have to reenable Password Authentication from "SSH Password Authorization Tweak", correct?
    0
  • cPanelLauren
    Yea, the only other option would be SFTP - How to Configure Your SFTP Client | cPanel & WHM Documentation you could chroot the users using jailshell but I believe they'd still be able to see other folders but not access them.
    0

Please sign in to leave a comment.