This content originally appeared on DEV Community and was authored by Sonu Kumar Kushwaha
Setup GitHub SSH Access on a Machine
Pre-requisite: Ensure Git is installed on the machine.
Generate SSH Key:
Run the following command, replacing the email with your GitHub account email:
ssh-keygen -t ed25519 -C "your_email@example.com"
Copy SSH Public Key:
Display the public key by running:
cat ~/.ssh/id_ed25519.pub
Copy the entire output.
Add SSH Key to GitHub Account:
Log in to your GitHub account.
Navigate to Settings → SSH and GPG keys.
Click New SSH key, give it a recognizable title, and paste the copied public key.
Save the key.
Clone GitHub Repository Using SSH:
Use the SSH URL format to clone your repository:
git clone git@github.com:username/repository.git
This content originally appeared on DEV Community and was authored by Sonu Kumar Kushwaha
Sonu Kumar Kushwaha | Sciencx (2025-10-21T04:36:48+00:00) Setup GitHub SSH Access on a Machine. Retrieved from https://www.scien.cx/2025/10/21/setup-github-ssh-access-on-a-machine-2/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.