add some error checking around use_ssh