this post was submitted on 13 Dec 2023
441 points (93.8% liked)
Programmer Humor
27624 readers
1819 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Uh how do i get GH cli to work on Linux? I tried pushing a project and it just asks for a password, and PW support is deprecated
I'm not sure about the exact commands, but you do something like
gh auth loginto authenticate the CLI and then something likegh ssh setupto change ssh's config file to authorize using the GH CLI.I'll try that, thanks
https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account
Connect an SSH key and use that.
No luck, i tried that and https login and it still asks for a PW when I push
HTTPS
git remote add origin https://github.com/user/repo.gitSSH
git remote add origin git@github.com:user/repo.gitDid you use the correct syntax for SSH?