Login to Heroku CLI on VPS/Remote VM

Edit



step 1 - Create a ssh tunnel to that VPS / Remote VM



ssh -f -N -D 1080 \
-o ServerAliveInterval=30 \
-o ServerAliveCountMax=3 \
-o ExitOnForwardFailure=yes \
user@xxx.yyy.zzz.xxx


step 2 Tell your web browser to use that, Tunel

  google-chrome \
--user-data-dir="$HOME/.config/google-chrome-vps" \
--proxy-server="socks5://localhost:1080" \
--host-resolver-rules="MAP * ~NOTFOUND , EXCLUDE localhost"

note: This will start a new session from a new profile


step 3 Login to Heroku account from this Chrome browser instance


step 4: On the VPS/VM run heroku login


Copy the URL for logging in the browser. Paste it into the browser session we created earlier, now I should be logged in

Payment successful

Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur amet labore.