I was following the instructions in comment 3 but as per comment 4 I had to specify the root user name and password.
I could also probably set up a new user on the ESXi but likewise I'd be giving access to whole ESXi. I know I only specify a vmx location but with this syntax you could very easily get access to the whole ESXi.
If I'm incorrect I'm open to correction.