You would run putty from a workstation (VM or physical) and conect to the management IP for ESXi.
If you're using the root login and get an error using SSH, then SSH access has been disbaled for that login. You can try another account with SSH access and then run su - in the SSH session to switch to the root account.