How to set up SFTP to chroot only for specific users

Updated 2015-02-11T16:58:31+00:00

Issue

  • How to set up sftp to chroot only for specific users
  • How to set up sftp so that a user can't get out of their home directory, ensuring no other users are affected
  • Preserve normal ssh/sftp functionality for most other users
  • Support for sftp/scp account jails in openssh server

Environment

  • Red Hat Enterprise Linux (RHEL) 6

  • Red Hat Enterprise Linux (RHEL) 7

Subscriber content preview. For full access to the Red Hat Knowledgebase, please log in.

Not a subscriber? Learn more about the benefits of Red Hat Subscriptions.