Added the option to pass a private key to exec_ssh