github-auth

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

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

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 SSH keys require manual configuration. This Skill walks through detection and setup so git operations, API calls, and CI workflows authenticate correctly. ## Core Features & Use Cases - Auth Detection: Checks whether gh CLI is authenticated, a GITHUB_TOKEN is available, or git credentials are stored, then picks the right method. - Git-Only Setup: Configures HTTPS personal access tokens with credential helpers or SSH keys with URL rewriting, requiring no sudo or extra installs. - gh CLI Setup: Handles interactive browser login or token-based login for headless servers, plus git credential integration via gh auth setup-git. - Use Case: On a fresh Linux server without root access, use this Skill to create a personal access token, store it with git's credential helper, set commit identity, and verify push access to a repository. ## Quick Start Set up GitHub authentication on this machine so I can clone, push, and use the GitHub API.

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 as the password with HTTPS, or set up an SSH key. Create a token at github.com/settings/tokens with repo and workflow scopes, then store it using git config --global credential.helper store.

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

Use token-based login without a browser: pipe the token into gh auth login --with-token, or configure git directly with the credential.helper store and enter the token when prompted. No sudo or desktop environment is required.

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

HTTPS tokens are more portable and work everywhere without SSH configuration, while SSH keys suit users who already manage keys. The Skill supports both, including rewriting HTTPS URLs to SSH with git config url.insteadOf.

Why does git push keep asking for a password?▼

GitHub no longer accepts account passwords for git operations. Use a personal access token as the password instead, or switch the remote to SSH. Also verify a credential helper is configured so the token persists.

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

Yes, call the API with curl using an Authorization header containing your personal access token. The included script can also extract an existing token from ~/.git-credentials when git credentials are already configured.

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

Some networks block port 22. Add a Host github.com entry to ~/.ssh/config with Port 443 and Hostname ssh.github.com to route SSH over the HTTPS port.