github-auth

Configures GitHub authentication via HTTPS tokens, SSH keys, or gh CLI login.

Updated Sep 9, 2026
One-click install
npx skills add https://github.com/luckybbjason1/trading --skill github-auth-luckybbjason1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/luckybbjason1/trading/tree/main/.hermes/skills/github/github-auth
Command: npx skills add https://github.com/luckybbjason1/trading --skill github-auth-luckybbjason1

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Setting up GitHub authentication on a new machine is error-prone: password auth is disabled, tokens need the right scopes, SSH keys must be registered, and headless servers lack browser login. This Skill walks through every authentication path so git operations, PRs, issues, and API calls work without repeated credential prompts. ## Core Features & Use Cases - Git-only authentication: Configure HTTPS personal access tokens with credential helpers or SSH keys with automatic URL rewriting, requiring no sudo or extra installs. - gh CLI authentication: Log in interactively via browser or non-interactively with a token on headless servers, then wire git credentials through gh auth setup-git. - Auth detection helper: A sourceable shell script detects the active auth method (gh, curl token, or none), resolves the GitHub username, and extracts owner/repo from the current git remote. - Use Case: On a fresh CI runner or SSH server with no root access, use the token-based git-only method to clone, commit, and push to a repository within minutes. ## Quick Start Set up GitHub authentication on this machine so I can clone and push to my repositories.

Frequently Asked Questions about github-auth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I authenticate git with GitHub using a personal access token?

Create a token at github.com/settings/tokens with repo and workflow scopes, then run git config --global credential.helper store and perform any git operation like ls-remote. Enter your username and paste the token as the password; it is saved for future operations.

How do I set up SSH keys for GitHub authentication?

Generate a key with ssh-keygen -t ed25519, then add the public key at github.com/settings/keys. Test with ssh -T [email protected] and optionally configure git to rewrite HTTPS URLs to SSH using url.insteadOf.

Can I use GitHub without installing the gh CLI or having sudo?

Yes, git-only authentication works on any machine with git installed and requires no root access. Use a personal access token with the credential helper, or call the GitHub API directly with curl and an Authorization header.

How do I log in to gh CLI on a headless server without a browser?

Pipe a personal access token into gh auth login --with-token, then run gh auth setup-git to configure git credentials. Verify the setup with gh auth status.

Why does git push keep asking for a password on GitHub?

GitHub disabled password authentication for git operations. Use a personal access token as the password instead, or switch the remote to SSH key authentication.

Why does git push fail with 'remote: Permission denied' even with a token?

The token likely lacks the repo scope needed for write access. Regenerate the token at github.com/settings/tokens with the repo scope selected, then update your stored credentials.