Can clone and push from one computer but not another. Same account #148073
-
Select Topic AreaQuestion BodyI have personal repos and I am also a member of an organization, but have different experiences with my organization's repos depending on the computer I use, though account is the same. In fact, I tried four computers: two with Windows and two with Linux Mint. On both Windows machines, I can create repos, clone them, push to them with command line or GUI tool, without any authentication hassle. No requests for tokens or anything. On Linux machines, I can log in to my GitHub account, visit all public and private repose, view any files in the organization's repos but can only clone and push to my personal repos. I created a token with access to all repositories and write and read permission for Contents, but it does not help. What I get is: I was able to push my PyCharm projects to the organizations repos somehow. I think with browser authentication. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Try to use SSH Auth on linux machines.
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
cat ~/.ssh/id_rsa.pub
git remote set-url origin git@github.com:organization/repo.git
ssh -T git@github.comYou should see a message confirming your access. Since pushing via PyCharm is possible, maybe you could also try to use the same mechanism on your linux machines:
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa |
Beta Was this translation helpful? Give feedback.
Try to use SSH Auth on linux machines.
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"cat ~/.ssh/id_rsa.pubYou should see a message confirming your access.
Since pushing via PyCharm is possible, maybe you could also try to use the same mechanism on your linux machines: