With the The REST API autonomous service v1.192 or Artica 4.30 Service Pack 209, you can manage the SSH service using REST API.
Install the SSH service and return a json with False or True
http://server:port/ssh/install
http://server:port/ssh/uninstall
Reconfigure parameters and restart SSH service
http://server:port/ssh/restart
http://server:port/ssh/status
Return a json with status details example:
{
"content": {
"APP_OPENSSH": {
"master_memory": "1231.872",
"uptime": "10h 10mn 46s",
"service_disabled": "1",
"family": "network",
"pid_path": "/var/run/sshd.pid",
"service_name": "APP_OPENSSH",
"master_time": "1621854874",
"installed": "1",
"watchdog_features": "1",
"running": "1",
"processes_number": "1",
"master_pid": "53076",
"service_cmd": "/etc/init.d/ssh",
"master_version": "7.9p1 Debian-10+deb10u2",
"application_installed": "1"
},
"status": true,
"info": "Status of OpenSSH service",
"installed": 1
}