Quick question re using systemctl to check status on machine running SSH on a non-standard port. Is it possible?
So, for example, I have no problems with "systemctl --host [email protected] status httpd.service". But I would _like_ to be able to do "systemctl --host [email protected] --port 2255". The manpages seems to only show "--host" as an option with no ability to specify "--port". Grepping through the code left me no wiser, so was hoping someone in the know could confirm/deny.
(The specific case is that I have a bunch of VMs controlled by VirtualBox and am redirecting localhost ports e.g. 2255 to guest port 22. I can of course run "ssh -l me -p 2255 localhost "systemctl status httpd.service".)
So, for example, I have no problems with "systemctl --host [email protected] status httpd.service". But I would _like_ to be able to do "systemctl --host [email protected] --port 2255". The manpages seems to only show "--host" as an option with no ability to specify "--port". Grepping through the code left me no wiser, so was hoping someone in the know could confirm/deny.
(The specific case is that I have a bunch of VMs controlled by VirtualBox and am redirecting localhost ports e.g. 2255 to guest port 22. I can of course run "ssh -l me -p 2255 localhost "systemctl status httpd.service".)