in reply to how to kill deattached process

Just a quick and dirty idea if nothing better comes along: Give the application on the other machine a parameter with a random id. This id can be seen in the output of ps and so the sshd process identified.