How to set up chroot SFTP on Red Hat Enterprise Linux ?

Solution Verified - Updated -

Issue

  • How to set up chroot sftp on Red Hat Enterprise Linux ?
  • How to setup sftp so that a specially-created ftp user can't get out of its home directory ?
  • How to setup sftp such that user can only access their home directory and its subdirectories ?
  • How to chroot-jail ?

Environment

  • Red Hat Enterprise Linux 5.4 and above
  • Red Hat Enterprise Linux 6
  • openssh-server-4.3p2-30.el5 or later

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content