Skip to main content

Grant ssh access using command line

Comments

2 comments

  • SysSachin
    You can use WHM API to modify account :
    0
  • cPanelMichael
    Hello, First, make sure the default shell is set to "jailshell" if that's what you prefer. You can configure this via the "System" tab in "WHM >> Tweak Settings", or by ensuring the following option is set to 1 in /var/cpanel/cpanel.config: jaildefaultshell Ensure you run the "/scripts/restartsrv_cpsrvd" command after making any changes to /var/cpanel/cpanel.config. Then, run a command like this based on the document referenced in the last post:
    whmapi1 modifyacct user=$username HASSHELL=1
    Thank you.
    0

Please sign in to leave a comment.