My searches are coming up with nothing clear about this.
I need to use cpanel CLI from a script on the server that is fine without 2FA enabled in cpanel but when its enabled (cpanel > 2fa > enable) then the CLI script on the server doesn't seem to work anymore.
Is there anything that can be added to curl_setopt() or can tfa_validated_securitytoken be used to do this? Is it possibly only some other way or not possible at all?
It would be a shame if additional security broke CLI as then what would be the point as people won't use additional security.
If anyone has an answer, even a guess is appreciated.
I need to use cpanel CLI from a script on the server that is fine without 2FA enabled in cpanel but when its enabled (cpanel > 2fa > enable) then the CLI script on the server doesn't seem to work anymore.
Is there anything that can be added to curl_setopt() or can tfa_validated_securitytoken be used to do this? Is it possibly only some other way or not possible at all?
It would be a shame if additional security broke CLI as then what would be the point as people won't use additional security.
If anyone has an answer, even a guess is appreciated.