github-auth

Configures GitHub authentication using HTTPS tokens, SSH keys, or the gh CLI.

Updated Aug 21, 2026
One-click install
npx skills add https://github.com/TylerSimons1127/vibe --skill github-auth-tylersimons1127
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/TylerSimons1127/vibe/tree/main/skills/github/github-auth
Command: npx skills add https://github.com/TylerSimons1127/vibe --skill github-auth-tylersimons1127

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 need configuration, and headless servers lack browser login. This Skill walks through detection and setup so git operations, PRs, issues, and CI access work without repeated credential prompts. ## Core Features & Use Cases - Auth Detection: Checks for gh CLI, existing authentication status, credential helpers, and stored tokens, then picks the right setup path automatically. - Multiple Auth Methods: Supports HTTPS personal access tokens with credential caching, SSH ed25519 keys with URL rewriting, and gh CLI login for both desktop and headless environments. - API Access Without gh: Extracts tokens from the git credential store and uses curl against the GitHub API as a fallback when the gh CLI is unavailable. - Use Case: You SSH into a fresh Linux server with no sudo access and need to clone and push to a private repo. The Skill detects that gh is missing, guides token creation with repo and workflow 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 pull requests.

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?▼

Generate a classic token at github.com/settings/tokens with repo and workflow scopes, then run git config --global credential.helper store. On the first git operation, enter your username and paste the token as the password; it is saved for future use.

How to set up GitHub authentication on a headless server without a browser?▼

Use token-based login: pipe the token into gh auth login --with-token, then run gh auth setup-git. If gh is not installed, configure git directly with credential.helper store and use the token as the HTTPS password.

Should I use SSH keys or HTTPS tokens for GitHub authentication?▼

HTTPS tokens are more portable and require no SSH configuration, making them the recommended default. SSH ed25519 keys suit users who already manage keys or prefer key-based auth, with git URL rewriting to route GitHub remotes over SSH.

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

Yes, the GitHub REST API works with curl by passing an Authorization: token header with a personal access token. The token can be exported as GITHUB_TOKEN or extracted from the ~/.git-credentials file using the included helper script.

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. Also verify a credential helper is configured with git config --global credential.helper so credentials persist.

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 route SSH over the HTTPS port, then retest with ssh -T [email protected].