{"id":31714979,"url":"https://github.com/chmodshubham/set-ssh-authentication","last_synced_at":"2025-10-09T01:50:40.183Z","repository":{"id":208792829,"uuid":"722481010","full_name":"chmodshubham/set-ssh-authentication","owner":"chmodshubham","description":"Setting Up SSH Authentication for GitHub","archived":false,"fork":false,"pushed_at":"2023-11-23T09:38:11.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-16T04:13:16.675Z","etag":null,"topics":["authentication","github","ssh"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chmodshubham.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-23T08:42:32.000Z","updated_at":"2023-11-23T09:39:03.000Z","dependencies_parsed_at":"2023-11-23T10:46:30.267Z","dependency_job_id":null,"html_url":"https://github.com/chmodshubham/set-ssh-authentication","commit_stats":null,"previous_names":["chmodshubham/next"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chmodshubham/set-ssh-authentication","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmodshubham%2Fset-ssh-authentication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmodshubham%2Fset-ssh-authentication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmodshubham%2Fset-ssh-authentication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmodshubham%2Fset-ssh-authentication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chmodshubham","download_url":"https://codeload.github.com/chmodshubham/set-ssh-authentication/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmodshubham%2Fset-ssh-authentication/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000706,"owners_count":26082895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","github","ssh"],"created_at":"2025-10-09T01:50:14.624Z","updated_at":"2025-10-09T01:50:40.177Z","avatar_url":"https://github.com/chmodshubham.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Setting Up SSH Authentication for GitHub\n\n## When is it Needed?\n\nSSH keys are required for secure, password-less authentication to GitHub. This is necessary when you want to perform Git operations (like clone, push, pull) over SSH. It's particularly useful for:\n\n- Automated scripts that interact with GitHub repositories.\n- Contributing to repositories without entering your username and password each time.\n- Enhanced security for repository access.\n\n## Setting Up Your Environment for GitHub\n\nBefore setting up SSH keys for secure GitHub access, it's important to configure your Git username and email. This information is used in your commits.\n\n### Configure Git Username and Email\n\n1. **Set Your Git Username**\n\n     ```bash\n     git config --global user.name \"Your Name\"\n     ```\n     \n   - Replace `Your Name` with your desired username.\n\n2. **Set Your Git Email**\n\n     ```bash\n     git config --global user.email \"your_email@example.com\"\n     ```\n     \n   - Replace `your_email@example.com` with your email address.\n\n## Steps to Add an SSH Key to Your GitHub Account\n\n### 1. Generate an SSH Key (if you don't have one)\n\nFirst, check if you already have an SSH key generated by running `ls -al ~/.ssh` in your terminal. Look for files named `id_rsa` and `id_rsa.pub`. If these files do not exist, generate a new SSH key with:\n\n```bash\nssh-keygen\n```\n\n### 2. Copy the SSH Public Key\n\nOpen the public key file in a text editor and copy its contents. You can also use the command:\n\n```bash\ncat ~/.ssh/id_rsa.pub\n```\n\nThen, manually copy the output.\n\n### 3. Add the Key to GitHub\n\n- Log in to your [GitHub account](https://github.com).\n- Click your profile picture in the top right corner, and select **Settings**.\n- In the user settings sidebar, click **SSH and GPG keys**.\n- Click the **New SSH key** button.\n- In the **Title** field, enter a descriptive name for your key.\n- In the **Key** field, paste your public SSH key.\n- Click **Add SSH key** to save the new key.\n\n### 4. Test Your SSH Connection\n\nTo ensure that your setup is working correctly, you can test your SSH connection to GitHub by running:\n\n```bash\nssh -T git@github.com\n```\n\nYou should receive a success message confirming your authentication.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchmodshubham%2Fset-ssh-authentication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchmodshubham%2Fset-ssh-authentication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchmodshubham%2Fset-ssh-authentication/lists"}