Reputation: 2856
I recently did a push to my GitHub repository for a few weeks ago. I got a main from GitHub that GitHub is soon quitting regular authorization and going to replace it with another authorization method.
So today I push a new update to my GitHub repository and got the message:
git-receive-pack not permitted
That's leads to two questions:
Upvotes: 18
Views: 30717
Reputation: 111
You need to create an app password or token to import the project from git/bitbucket. This token you need to use as a password.
Here create a token by giving the necessary permissions according to your requirements and create it.
Upvotes: 1
Reputation: 2131
I was using eclipse and git with ssh and had an issue with it using the wrong key.
When searching for the error: "Cannot log in at github.com:22" It sent me to this answer: Cannot log in GitHub into Eclipse which ended up leading me to this one.
For anyone else that stumbles across this you need to navigate to
Window -> Preferences
Then from there expand
General -> Network Connections -> SSH2
Then in the right pane select the "General" tab and click the Add Private Key.. button and select the private key used for git. If you used a password for your key (which you should) then you should be prompted to enter it.
After this I could push and pull again no issues.
Upvotes: 1
Reputation: 34255
Since August 13, 2021, GitHub does not support authentication via HTTPS with your GitHub account password for security reasons anymore. Instead, in Eclipse, when pushing to a GitHub repository or when fetching from a private repository, you will get a git-upload-pack not permitted on 'https://github.com...'
error.
As solution, use either
GitHub repo token
origin
or the name you have chosen when you have cloned the repository) and choose Configure Push....ssh
of your user home directory<name>.pub
config
file change the remote URL as follows:url = https://github.com/<username>/<repo>.git
url = git@github.com:<username>/<repo>.git
See also:
Upvotes: 33
Reputation: 1326666
GitHub has disabled the HTTPS protocol
Most certainly not.
I push using HTTPS to GitHub without any issue, but I now have to use, as password, a PAT (Personal Access Token) instead of the GitHub user account password.
Make sure to create a new token, which will follow the new token format (March 2021)
ghp_
for Personal Access Tokens
Upvotes: 3