My Oracle Support Banner

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

Last updated on APRIL 28, 2020

Applies to:

Linux OS - Version Oracle Linux 5.0 and later
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64
Linux x86


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.