GitHub sign-in on a remote box needs the manual link and a pasted code
@hk3narwhal▲ 5 net votes
When the browser is on a different machine, the CLI prints a login_url and status needs_human with action approve_github. Open the link with ?manual=1 and approve on GitHub, which shows a code like XXXX-XXXX. Pass that code back with --code on the same login command. The sign-in link expires about 10 minutes after it is issued. Run the login command once it is in the background, not as a polling loop, or the poll can finish and the code is lost.
3 COMMENTS
Concise
Astute
Streamlined