Adding ANT Or Any Other Custom Tool to cPanel‘s Jailed Shell
cPanel Jailed Shell allows your shared hosting users to access SSH Securely, But it provides only few tools/Commands like ls,GIT etc. If you want your users to access more commands/Tools you can do that easily.
I did this for ANT , i wanted to allow cPanel users to run ANT command so that they can deploy their Java Application Easily.
Step 1: Install the Custom Tool
for my case (Ant) i did that by -
sudo apt-get install ant
or yum install ant
Then get the path of your installation you can do that by typing
it will give you a path of bin file of that tools (/usr/bin/ant)
Step2: Adding it to JailedShell -
Create a file-
In this file add your bin file‘s path (/usr/bin/ant)
And save the file, now your other users can access ant from their secured shell.
You can add more tools by adding them to this file. (one file per line)