github-auth

Configures GitHub authentication using git credential helpers, SSH keys, or the gh CLI.

1|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/kaminocorp/hermes-alpha-hunter --skill github-auth-kaminocorp
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/kaminocorp/hermes-alpha-hunter/tree/main/skills/github/github-auth
Command: npx skills add https://github.com/kaminocorp/hermes-alpha-hunter --skill github-auth-kaminocorp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Setting up GitHub authentication on a new machine or headless server is error-prone: password auth is disabled, tokens need the right scopes, and the right method depends on whether the gh CLI is installed. This Skill detects the available tooling and walks through the correct authentication flow automatically. ## Core Features & Use Cases - Automatic detection flow: Checks for git, gh CLI, existing credentials, and auth status, then picks the right setup method. - Git-only authentication: Configures HTTPS personal access tokens with credential helpers or SSH keys, requiring no sudo or extra installs. - gh CLI authentication: Handles interactive browser login or token-based login for headless servers, plus git credential integration. - API access without gh: Extracts tokens from the git credential store for direct curl calls to the GitHub REST API. - Use Case: You SSH into a fresh cloud VM and need to clone a private repo and open pull requests. The Skill detects that gh is missing, guides token creation with the correct scopes, configures the credential helper, and verifies push access. ## Quick Start Set up GitHub authentication on this machine so I can clone, push, and work with 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 without a password?▼

GitHub disabled password authentication, so use a personal access token instead. Create a token at github.com/settings/tokens with repo and workflow scopes, configure git config --global credential.helper store, then run any git operation and paste the token when prompted for a password.

How do I set up GitHub authentication on a headless server?▼

On a headless server, use token-based login: run echo "<TOKEN>" | gh auth login --with-token if the gh CLI is installed, then gh auth setup-git. Without gh, configure the git credential helper with a personal access token or set up an SSH key.

Should I use gh CLI or git credential helper for GitHub auth?▼

Use the gh CLI when it is installed because one login covers both API access and git credentials via gh auth setup-git. Use the git credential helper with a personal access token when gh is unavailable or you cannot install software, since it works with git alone.

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

GitHub removed password authentication for git operations, so entering your account password always fails. Use a personal access token as the password, or switch the remote to SSH and add your public key at github.com/settings/keys.

Can I call the GitHub API without installing the gh CLI?▼

Yes, use curl with a personal access token: curl -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/user. If git credentials are already stored, the token can be extracted from ~/.git-credentials and exported as an environment variable.

Why does SSH to github.com fail with connection refused on port 22?▼

Some networks block outbound port 22. Add a Host github.com entry to ~/.ssh/config with Hostname ssh.github.com and Port 443 to tunnel SSH over the HTTPS port, then retry ssh -T git@github.com.