Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 887 Bytes

File metadata and controls

30 lines (19 loc) · 887 Bytes

SSH Connection between client and github

Create SSH Key

🔗 https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent

ssh-keygen -t ed25519 -C "your_email@example.com"

When you're prompted to "Enter a file in which to save the key," press Enter. This accepts the default file location.

At the prompt, type a secure passphrase or enter.

ssh-add ~/.ssh/(name of ssh key created)

Add it to github

🔗 https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account

⚠️ COPY ONLY THE PUB SSH KEY

xclip -selection clipboard < ~/.ssh/(name of ssh key created).pub 

Paste it into Github platform

🚩 Optional: You can allow only SSH connection for repository