Enabling Jailed Shell access for a cPanel user
WHM >> Account Functions >> Manage shell Access >> Search for the domain >> Select the "Jailed Shell" >> Two options will be displayed for select => select the second one (which says not recommended).
After setting the above things go to the back end of the server and open the ssd_config file (/etc/ssh/sshd_config ) under the home directory.
At the end of the file, add the username as shown below.
AllowUsers root@110.4.45.* root@103.6.196.* root@103.6.198.* root@110.4.43.* otoworkz
If you couldnot find such a line in the sshd_config file, you can copy the above line and paste in the last of the file.
eg:- AllowUsers root@IP-of-the-server username
Jailed Shell — Select this option to grant the user access to a jailed shell, which limits the user's ability to run certain commands that could harm your server.
Disabled Shell — Select this option to deny shell access to the user.
Post A Comment:
0 comments: