Github fix permission denied error

when using go mod to get private dependencies.

go: github.com/account/project-utils@v0.0.0-20201015040921-5f23d1a17a73: invalid version: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /home/cuongld/go/pkg/mod/cache/vcs/asshfsfsd: exit status 128:
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

--

--

A passionate automation engineer who strongly believes in “A man can do anything he wants if he puts in the work”.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Donald Le

A passionate automation engineer who strongly believes in “A man can do anything he wants if he puts in the work”.