I am not of any help regarding the constraints, I'd go headlong towar parsing /etc/ssh/sshd_config ... grep Listen
But as you said, drawbacks exist.
netstat might not be present on the system and so on
I'm just raising an idea, I'm far from having all the constraints in mind
Thank you, this is really nice to be part of it, Cloudron is just a dream come true, wish I had heard about it years ago