Recently, I set up WSL2 and Ubuntu on my Windows 11 to work on open source projects. Since I maintain these plans too, I installed Calcut CLI To ease my workflow. I successfully installed the bothered CLI, but failed to confirm it.
Message of error failed to authenticate via web browser: Too many requests have been made in the same timeframe. (slow_down)
On my terminal, while on the web browser, it indicated that the verification was successful.
I Google and found some tasks I tried, but only works like a charming!
Finally, after resolving the problem of difficult verification for a botanical CLI on WSL2, I have gathered this guide. This is a complete walkthrough for a solution that works, which covers everything from smooth installation to administration.
The table of content
Provisions
Before starting, make sure you have installed it on your Windows machine:
You can use the instructions given in this article, you can use the Windows Power Shell Terminal as an administrator.
As an alternative, if you have a Windows terminal installed, you can use the Linux terminal by clicking on the ‘bottom arrow’ icon in the above and selecting Distro.
How to install the bothered CLI on WSL 2
If you use Ubuntu, Debine, or Rasbier Pie OS (APT) Distros, you can use the installation process described here. Here in addition to the above mentioned Distros, you can go through the installation process that is available on GATHB CLI Official Documents.
To install the Githab CLI in WSL2:
Run this command:
(type -p wget >/dev/null || (sudo apt update && sudo apt install wget -y)) \ && sudo mkdir -p -m 755 /etc/apt/keyrings \ && out=$(mktemp) && wget -nv -O$out \ && cat $out | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \ && sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \ && sudo mkdir -p -m 755 /etc/apt/sources.list.d \ && echo "deb (arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg) stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \ && sudo apt update \ && sudo apt install gh -y
Type your Linux password when you are indicated.
Ensure that the gutb is installed from running CLI
gh --version
Order. If the installation is successful, you should see something like in your terminal:gh version 2.76.2 (2025-07-30)
How to Verify Github CLI on WSL2 with your Gut Hub Account
Before you can use a botanical CLI, you have to verify it first. You will get one HTTP 401: Bad credentials (
Error Message If you run any bottle of CLI command without authenticity.
To verify the Githab CLI with your Gut Hub Account:
Drive
gh auth login
Command in your terminal.You will receive several indicators, and you need to choose the methods you prefer. Here’s what I have chosen in every indicator:
? Where do you use GitHub? GitHub.com ? What is your preferred protocol for Git operations on this host? HTTPS ? How would you like to authenticate GitHub CLI? Login with a web browser
After responding to all the gestures, you should get a message to copy a time -consuming code as shown below. You The code is not required to copy At this location
! First copy your one-time code: XXXX—XXXX
Press ‘Inter’. It automatically opens the “Device Activation” page on your browser.
Click the Green ‘Continue’ button.
Gitube should ask you to enter the code displayed on your terminal, as shown in the screenshot below. But here’s the trick! Don’t paste any code, and don’t close the browser. Let’s go back to your terminal first.
Now you can find this error message on your terminal:
grep: /proc/sys/fs/binfmt_misc/WSLInterop: No such file or directory WSL Interopability is disabled. Please enable it before using WSL. grep: /proc/sys/fs/binfmt_misc/WSLInterop: No such file or directory (error) WSL Interoperability is disabled. Please enable it before using WSL.
Press
Ctrl + C
To stop this process, if it is still running, or allow it to stop. Once it stops, you should see this message:failed to authenticate via web browser: Too many requests have been made in the same timeframe. (slow_down)
Drive
gh auth login
Repeat and repeat the process to select the methods of your choice. This time, when it tells you to press ‘Inter’, Press it.Copy the latest code and go back to the “Device Activation” page that you have left open in your browser.
Paste the code you have copied and click the Green ‘Continue’ button.
Gut Hub Click the Green ‘Authorized Gut Hub’ button after redirecting you to the “Authorization of Gateb CLI”. Now you should see the message “Congratulations, you are ready!”
Return to your terminal and press ‘Inter’. By doing this is stimulated by these actions:
It automatically opens a new “Device Activation” page in your browser. You can safely ignore it.
In the terminal, you first see the error message, such as in Step 4. Do nothing and wait a little. Then, you get:
✓ Authentication complete. - gh config set -h github.com git_protocol https ✓ Configured git protocol ! Authentication credentials saved in plain text ✓ Logged in as YOUR-GITHUB-USERNAME ! You were already logged in to this account
And the Githab CLI has now been verified successfully!
The credit goes The username “IKEYAN” for their Githab CLI verification solution on Gut Hub!
How to upgrade the Gethb CLI on WSL2
Regular checking of package and dependence updates, and upgrading to the latest version when available, is always a good process – it also includes bottle CLI. To check updates and upgrade the version of Calcutt CLI:
Drive
sudo apt update
Command in your terminal. This command brings a list of updates available.Type your Linux password when you are indicated.
If you need to upgrade your bumpy CLI, run
sudo apt install gh
. This command installs the latest version of the Catal CLI.Type your Linux password when you are indicated.
Now is the latest version of your balcony CLI.
How to Install the Bothess CLI on WSL 2
If one day you feel that you no longer need to use Githab CLI, you can follow these steps and install it in:
Drive
sudo apt remove gh
Command in your terminal.Type your Linux password when you are indicated.
Press ‘Y’ to continue the installation process.
Githab CLI is now installed from your WSL environment.
How to cancel access to Githab CLI on Gut Hub
After installing a botanical CLI, you think your account has expired, but it is not. The confirmation you have given is still active. If you do not intend to use the CLI again, it is a good process to declare this access invalid.
How to do it directly from your Gut Hub Account:
On your gut hub account, click on your profile picture on the top right and click on ‘Settings’.
On the left bar, find ‘integration’ and click on ‘applications’.
Click on the top ‘Authorized Oauth Apps’ tab.
Find the Catal CLI and at the same time click on the ‘three dots’ icon.
Click ‘cancel’.
Confirm this by clicking the button ‘I understand, Cancel Access’ button.
Now, Githab CLI does not have access to your Gut Hub account.
The last words
Credit Credit Core image: Undraw.co
Thank you for reading! Last, you can find me X And Linked. Let’s contact! 😊 😊