SSH to your server with a browser.
$ pm2 install pm2-ssh
$ google-chrome http://localhost:8080
Then type the default auth
Username: foo Password: bar
# Changer user
$ pm2 set pm2-ssh:username foo
# Change password
$ pm2 set pm2-ssh:password bar
# Change port
$ pm2 set pm2-ssh:port 7890
MIT