GitHub Desktop or Git CLI?hypnotic_nerd@programming.dev to Programmer Humor@programming.dev – 484 points – 10 months ago159Post a CommentPreviewYou are viewing a single commentView all commentsUh 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 deprecatedhttps://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 pushHTTPS git remote add origin https://github.com/user/repo.git SSH git remote add origin git@github.com:user/repo.git Did you use the correct syntax for SSH?I'm not sure about the exact commands, but you do something like gh auth login to authenticate the CLI and then something like gh ssh setup to change ssh's config file to authorize using the GH CLI.I'll try that, thankskey identificationUse ssh authentication instead
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 deprecatedhttps://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 pushHTTPS git remote add origin https://github.com/user/repo.git SSH git remote add origin git@github.com:user/repo.git Did you use the correct syntax for SSH?I'm not sure about the exact commands, but you do something like gh auth login to authenticate the CLI and then something like gh ssh setup to change ssh's config file to authorize using the GH CLI.I'll try that, thankskey identificationUse ssh authentication instead
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 pushHTTPS git remote add origin https://github.com/user/repo.git SSH git remote add origin git@github.com:user/repo.git Did you use the correct syntax for SSH?
No luck, i tried that and https login and it still asks for a PW when I pushHTTPS git remote add origin https://github.com/user/repo.git SSH git remote add origin git@github.com:user/repo.git Did you use the correct syntax for SSH?
HTTPS git remote add origin https://github.com/user/repo.git SSH git remote add origin git@github.com:user/repo.git Did you use the correct syntax for SSH?
I'm not sure about the exact commands, but you do something like gh auth login to authenticate the CLI and then something like gh ssh setup to change ssh's config file to authorize using the GH CLI.I'll try that, thanks
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
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.git
SSH
git remote add origin git@github.com:user/repo.git
Did you use the correct syntax for SSH?
I'm not sure about the exact commands, but you do something like
gh auth login
to authenticate the CLI and then something likegh ssh setup
to change ssh's config file to authorize using the GH CLI.I'll try that, thanks
key identification
Use ssh authentication instead