github-auth

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

115|9|Updated Aug 5, 2026
One-click install
npx skills add https://github.com/AtlasOmnia/donna-starter --skill github-auth-atlasomnia
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/AtlasOmnia/donna-starter/tree/main/skills/github/github-auth
Command: npx skills add https://github.com/AtlasOmnia/donna-starter --skill github-auth-atlasomnia

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Setting up GitHub authentication is a common blocker before any repository work can begin, and the right method depends on what tools are installed and whether you have sudo access. This Skill detects the available tooling and walks through the correct authentication path so git operations, PRs, issues, and CI access work without repeated credential prompts. ## Core Features & Use Cases - Automatic detection: Checks for git, gh CLI, existing authentication status, and credential helpers before choosing a setup path. - Multiple auth methods: Supports HTTPS personal access tokens, SSH key generation and configuration, and gh CLI login (browser-based or token-based for headless servers). - API fallback without gh: Provides curl-based GitHub API access using a GITHUB_TOKEN environment variable when the gh CLI is unavailable. - Use Case: On a fresh headless Linux server with no sudo access, use this Skill to authenticate git with a personal access token, configure your commit identity, and verify push access to your repositories. ## 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 the gh CLI?

Use a personal access token created at github.com/settings/tokens with repo and workflow scopes, then store it via your OS credential helper (osxkeychain on macOS, manager on Windows). Alternatively, generate an ed25519 SSH key and add the public key to your GitHub account.

How do I log in to the GitHub CLI on a headless server?

Use token-based login by piping your token into gh auth login --with-token, then run gh auth setup-git to configure git credentials. This avoids the browser-based flow that requires a desktop environment.

Can I use the GitHub API without installing the gh CLI?

Yes, you can call the GitHub REST API directly with curl by passing your personal access token in the Authorization header. Export the token as the GITHUB_TOKEN environment variable to keep it out of command history.

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

GitHub disabled password authentication for git operations, so you must use a personal access token as the password or switch to SSH keys. If authentication still fails, cached credentials may be stale and need to be cleared with git credential reject.

What should I do when SSH to github.com on port 22 is refused?

Configure SSH over the HTTPS port by adding a Host github.com entry to ~/.ssh/config with Port 443 and Hostname ssh.github.com. This bypasses networks that block outbound port 22.