My Oracle Support Banner

How to set chroot jail for sftp. (Doc ID 1324167.1)

Last updated on MARCH 14, 2019

Applies to:

Linux OS - Version Oracle Linux 5.4 and later
Oracle Cloud Infrastructure - Version N/A and later
Information in this document applies to any platform.


This document explains how to set up a chroot environment to avoid unwanted alterations of the system including uploads in unwanted locations when users are making use of sftp.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document
 Method A (by using pam_chroot)
 Method B (by openssh natively)

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.