Note: PM2 own code quality is bad and cluster_mode is not production ready. I would not recommend to use PM2, anywhere. You have been warned.
How to use a different ssh port for PM2Since pm2-deploy directly forward the host string to ssh, you can simply use:
"host": "HOSTNAME -p PORT"inside the configuration file.