Error creating machine: Error running provisioning: Error running apt-get update: ssh command error:


Do you have any retries baked in for this error. It appears to hang around for a while and then go ahead and relaunch the instance. It looks to be a brief network break between the instance and the repository, a couple of retries will likely stop the whole rebuild process having to be kicked off again.


I had this issue when the host machine key (AWS) didn’t have the proper permissions.
I fixed that by adding this policy and attaching it to the user that’s on the rancher host -