Skip to content

Latest commit

 

History

History
executable file
·
58 lines (40 loc) · 1.28 KB

SSH_KEYS_WINDOWS.md

File metadata and controls

executable file
·
58 lines (40 loc) · 1.28 KB

Configure SSH Keys for GitHub: Windows Steps

LINKS:

GIT-BASH:

# Move to the SSH keys folder
cd ~/.ssh

# Create the Key
ssh-keygen -t ed25519 -C "san99tiago@gmail.com GitHub" -f id_ed25519

POWERSHELL:

# Enable the configurations and start the agent
Get-Service -Name ssh-agent | Set-Service -StartupType Manual
ssh-agent start

# Add the SSH keys
ssh-add.exe C:\Users\santi\.ssh\id_ed25519

# It should say...
# Identity added: C:\Users\santi\.ssh\id_ed25519(san99tiago@gmail.com GitHub)

GITHUB:

# 1) Copy the public key... (the "github_demo.pub" content)

# 2) Go to GitHub in "Profile" --> "Settings" --> "SSH Keys" --> "Add key"

Troubleshooting Windows

# Remove specific SSH Key
ssh-add -d C:\Users\santi\.ssh\id_ed25519

# Remove all existing SSH Keys
ssh-add -D

# Check connectivity to the correct domain
ssh -vT git@github.com
# IMPORTANT
# --> If the key is named different, if might cause issues and ...
# --> ... we would have to create/configure the "~/.ssh/config"  file