Report question

Question: How to use ssh to run a local command after connection and quit after this local command is executed?