How to Enable or Disable Shell Access for a Client Account in WHM?


Shell Access (SSH access) allows a client to connect to their hosting account via the command line using an SSH client. By default, shell access is disabled for most shared hosting clients for security reasons. You can enable it for specific clients who need it.

Enable Shell Access for a Client

  1. Login to WHM.
  2. Go to Account Functions → Modify an Account.
  3. Select the client's username from the dropdown.
  4. Click Modify.
  5. Scroll to the Shell Access option.
  6. Change the dropdown from Disabled to:
    • /bin/bash – Full shell access (most common)
    • /bin/jailshell – Restricted shell (safer for shared hosting)
  7. Click Save.

Shell access is now enabled. The client can connect via SSH using their cPanel username and password on port 22.

Disable Shell Access

  1. Follow the same steps above.
  2. Change the Shell Access dropdown back to Disabled.
  3. Click Save.

Jailshell vs Bash – Which to Use?

Shell Type Description Best For
/bin/bash Full unrestricted shell access Developers who need full access
/bin/jailshell Restricted — cannot navigate outside home directory Clients who need SSH but limited access
Disabled No SSH access at all Standard shared hosting clients

Security Warning: Only enable shell access for clients you trust. Shell access gives them direct command-line access to their hosting files and can pose a security risk if misused.

If you continue to face issues, please open a create a request.

Ця відповідь Вам допомогла? 0 Користувачі, які знайшли це корисним (0 Голосів)