First, install the PuTTY than you can run PuTTYgen on Mac. Mac has the port of PuTTY which can be installed in various ways described as below: Installation using Homebrew: Use the below-given command to install PuTTY in case you have already installed “brew”command.sudo brew install putty Installation using MacPorts: PuTTY is easily available through MacPorts.