removed sudo from mkdir command. Consumer should specify temp config dir location that their ssh user has access to. The packer.Communicator.upload command does not execute as root/sudo user