cPanel module
SSH
1 functions, invoked through the cpanel_uapi tool.
scope cpanel:uapi
Call any function with
cpanel_uapi(service_id, module="SSH", function, params). Live availability depends on the cPanel features JetHost has enabled on your account — call list_cpanel_operations to see what is active.get_port GET#
Return SSH port
This function retrieves the server's SSH port.
No parameters.
Response — normalized as { ok, data, errors[], warnings[] }; data contains:
portinteger
The server's SSH port.