Cloud Linux, Control Panel, CPanel / WHM

How to enable jailed shell/SSH access to CPanel user using command line.

To enable jailed shell or SSH access to CPanel user. You can run below command.

chsh -s /usr/local/cpanel/bin/jailshell username

Kindly replace username with CPanel username.

It will show output like below

[root@ ~]# chsh -s /usr/local/cpanel/bin/jailshell abcde23
Changing shell for abcde23.
Shell changed.
[root@ ~]#