Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/taracodlabs/aiden --skill github-auth명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | github-auth |
| description | GitHub auth setup via gh CLI, SSH keys, HTTPS PATs |
| category | developer |
| version | 1.0.0 |
| origin | aiden |
| license | Apache-2.0 |
| tags | github, auth, ssh, pat, token, credentials, gh-cli, authentication, git, https |
Configure GitHub authentication for git and gh CLI operations using the GitHub CLI (gh), SSH keys, or HTTPS personal access tokens (PATs).
Permission denied (publickey) or Authentication failed errors# Interactive login — opens browser for OAuth
gh auth login
# Choose: GitHub.com → HTTPS → Authenticate with browser
# Or choose SSH if preferred
# Verify authentication
gh auth status
# Generate Ed25519 key (modern, secure)
ssh-keygen -t ed25519 -C "your-email@example.com" -f "$env:USERPROFILE\.ssh\github_ed25519"
# Start ssh-agent and add key
Start-Service ssh-agent
ssh-add "$env:USERPROFILE\.ssh\github_ed25519"
# Display public key to copy to GitHub
Get-Content "$env:USERPROFILE\.ssh\github_ed25519.pub"
After running step 2, the user must add the public key at https://github.com/settings/keys → New SSH key.
# Create or append to SSH config
$config = @"
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/github_ed25519
"@
Add-Content "$env:USERPROFILE\.ssh\config" $config
# Test SSH connection
ssh -T git@github.com
Direct the user to: https://github.com/settings/tokens/new
repo, read:org (for org repos), workflow (for Actions)# Configure git to cache HTTPS credentials
git config --global credential.helper wincred
# Test — will prompt for username + PAT as password
git clone https://github.com/your-org/your-repo.git
# Authenticate gh CLI with a PAT non-interactively
$env:GH_TOKEN = "ghp_your_token_here"
gh auth status
# Check gh auth
gh auth status
# Check git remote URL type
git remote -v
# Test SSH
ssh -T git@github.com
# Expected: "Hi username! You've successfully authenticated..."
# Show current remote
git remote get-url origin
# Change to SSH
git remote set-url origin git@github.com:owner/repo.git
git remote -v # verify
"I'm on a new machine and need to set up GitHub access"
→ Use step 1 (gh auth login) for the quickest setup. If SSH is preferred, use steps 2–3 then step 1 with SSH option.
"I'm getting Authentication failed when pushing to GitHub"
→ Use step 6 to diagnose. If HTTPS, rotate the PAT (step 4). If SSH, run ssh -T git@github.com to test.
"Generate a new SSH key and add it to GitHub" → Use steps 2–3 and instruct user to paste the public key at github.com/settings/keys.
gh auth login stores credentials in the system keychain — do not use on untrusted machines