DEV Community

Jasur Kurbanov
Jasur Kurbanov

Posted on

Fatal Github Error: Authentication failed for Command Line

While I was participating on Linode Hackathon. I need to upload React project from Ubuntu server to Github. My Ubuntu server was hosted on Linode. So using command line I decided to upload to Github. But I come across this problem

Image description

As you can see it is stating that password authentication was removed already. So instead of this we need Personal access tokens to successfully do solve this problem.

Step 1

Go to settings

Image description

Step 2

In you profile, scroll down till end and find developer settings

Image description

Once you clicked on developer settings, you can see this sidebar with three menu items. From here click to last menu item which is Personal access tokens

Image description

Step 3

Then choose, from toggling menu down, Tokens(classic)
Image description

Step 4

Click to generate to token

Image description

Step 5

Choose for general purpose option

Image description

Step 6

On notes write down your notes, and from scopes choose what you need.

Image description

Once you done, click to generate token button.
Now you get your token

Image description

Now you can use this token for authentication.

In Command Line

Image description

When they ask you password: enter you personal access token

If you need build, help, support to your projector want to get next level in your coding journey reach me out jasurkurbanov96@gmail.com

Top comments (0)