ssh user@themachine -oStrictHostKeyChecking=no -tt "path/to/my/program.sh" -o ServerAliveInterval 120 works if the user is know by the machine