Starting Appium Remotely

So I have a test written on mu current machine, and to run this test I have a simulator on my machine and another simulator on another machine. Both machines are set up with appium and everything and are able to run tests that only require one device. Now my question is how can I connect these two so that if I run a test from my machine it knows the first simulator is the current machine and the second is in the other machine? I know I need to do something with ssh but I do not know how. Please help.

how about Jenkins and Slave?

You can try with selenium grid as well.