Using SSH I want to do some remote execution from one Linux box on a couple of others. I have exported the SSH keys from the controlling machine which issues the remote commands to the target machines to avoid user/password authentication and using
ssh server "command" I can easily do what I want. However, some commands do not seem to return a returncode (or something) to the controlling machine's shell, the remote command does get executed remotely but the shell does not return. CTRlC returns the shell (Killed by signal 2.) but I'd need the command to simply finish running, as it were. Could anyone tell me if I can change this behavious somehow? I am aiming to run these commands via a script automatically n the background, not interactively.