github-auth

Configure GitHub authentication for git and gh CLI with SSH keys and personal access tokens.

779|139|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/taracodlabs/aiden --skill github-auth-taracodlabs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/taracodlabs/aiden/tree/main/skills/github-auth
Command: npx skills add https://github.com/taracodlabs/aiden --skill github-auth-taracodlabs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

GitHub authentication for git and gh CLI on new machines, SSH keys, and HTTPS PATs, enabling seamless operations and secure access.

Core Features & Use Cases

  • Interactive gh auth login to authenticate on a new machine.
  • Generate and configure SSH keys for GitHub access and set up ssh config.
  • Create and use HTTPS Personal Access Tokens (PATs) with Git and gh CLI.
  • Verify credentials and switch between HTTPS and SSH as needed.

Quick Start

Run gh auth login on a new machine and follow prompts to authenticate with GitHub.

Frequently Asked Questions about github-auth

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

FAQPage Schema
How do I fix the Permission denied (publickey) error when pushing to GitHub?

Resolve the Permission denied (publickey) GitHub error by generating and registering new SSH keys. This GitHub authentication setup configures your SSH config and verifies credentials to restore secure repository access.

How do I configure GitHub authentication on a new machine?

Configure GitHub authentication on a new machine by provisioning SSH keys, a personal access token (PAT), and gh CLI credentials. Run gh auth login to interactively authenticate and verify your Git access status.

What's the best way to switch my Git remote from HTTPS to SSH?

Switch your Git remote from HTTPS to SSH by generating an SSH key and updating your SSH config. This process verifies your credentials and enables seamless access to personal or organizational repositories.

Do I need a personal access token (PAT) or SSH key for GitHub CLI?

You can use either a PAT or SSH key for GitHub CLI. This setup provisions both, allowing you to switch between HTTPS PATs and SSH keys as needed and verify active authentication status.

How do I rotate a compromised GitHub personal access token?

Rotate a GitHub personal access token by generating a new PAT and configuring Git to cache the updated credentials. This skill updates your gh CLI credentials and verifies the new token's authentication status.

What prerequisites are needed to set up GitHub authentication?

Setting up GitHub authentication requires installed gh CLI, SSH tooling, and Git configured to cache credentials. Once these dependencies are installed, you can provision keys and tokens for secure repository access.