{"id":19083664,"url":"https://github.com/tarikguney/powershell-git-profile","last_synced_at":"2025-08-22T05:35:15.201Z","repository":{"id":87101903,"uuid":"456011579","full_name":"tarikguney/powershell-git-profile","owner":"tarikguney","description":"Setting up SSH keys with Git in Powershell","archived":false,"fork":false,"pushed_at":"2022-03-21T07:29:46.000Z","size":404,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-30T08:56:48.766Z","etag":null,"topics":["git","github","powershell","ssh"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","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/tarikguney.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-05T23:34:22.000Z","updated_at":"2023-11-07T11:54:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"553ecc56-da85-4148-a5a7-7e80ab477245","html_url":"https://github.com/tarikguney/powershell-git-profile","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tarikguney/powershell-git-profile","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarikguney%2Fpowershell-git-profile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarikguney%2Fpowershell-git-profile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarikguney%2Fpowershell-git-profile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarikguney%2Fpowershell-git-profile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tarikguney","download_url":"https://codeload.github.com/tarikguney/powershell-git-profile/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarikguney%2Fpowershell-git-profile/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271591297,"owners_count":24786397,"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-08-22T02:00:08.480Z","response_time":65,"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":["git","github","powershell","ssh"],"created_at":"2024-11-09T02:48:26.773Z","updated_at":"2025-08-22T05:35:15.184Z","avatar_url":"https://github.com/tarikguney.png","language":"PowerShell","readme":"# Git SSH Configurator for Powershell\n\n![](./git-ssh-configurator-banner.jpg)\n\nAre you are tired of manually generating your public and private keys and starting the ssh agent and adding the private key to it each time you use remote Git repositories with SSH authentication?\n\nThen, this is the script you need.\n\nIt will:\n1. Generate your SSH public and private keys.\n2. Add the necessary OpenSSH commands in your `$profile.CurrentUserCurrentHost` profile file so that each time you start a new Powershell session, your private SSH key are automatically added to OpenSSH agent.\n3. It will copy your new SSH public key to the clipboard so that you can quickly paste it into your favorite Git registry SSH keys page (e.g. Github).\n4. And more importantly, you won't have to remember any of these steps.\n\nYou can get more information by invoking `Get-Help ./setup.ps1` in the script folder.\n\n## Examples\n\n`./setup.ps1 -e hello@world.com`\n\n`./setup.ps1 -e hello@world.com -f github_key`\n\nFor all examples, run:\n\n`Get-Help ./setup.ps1 -Examples`\n\n## Parameters\n\n```\n-Email \u003cString\u003e (Alias: -e)\nEmail address that is used in the SSH Key.\n\n-KeyFileName \u003cString\u003e (Alias: -f)\nThe SSH public and private key file name that is going be generated. The default is github.\n\n\u003cCommonParameters\u003e\nThis cmdlet supports the common parameters: Verbose, Debug,\nErrorAction, ErrorVariable, WarningAction, WarningVariable,\nOutBuffer, PipelineVariable, and OutVariable. For more information, see\nabout_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).\n```\n\nTo see the parameter information, run:\n\n`Get-Help ./setup.ps1 -Detailed`\n\n## Notes\n1. Works in MacOS and Windows\n2. Powershell 7.x+ must be installed on the computer.\n\n## Troubleshooting\n\nIf you are getting the following error even though you added your public key to your Git registery's SSH Keys:\n\n```\nCloning into 'repository-name'...\nWarning: Identity file /c/Users/Tarik Guney/.ssh/github not accessible: No such file or directory.\nWarning: Permanently added 'bitbucket.org' (RSA) to the list of known hosts.\ngit@bitbucket.org: Permission denied (publickey).\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n```\n\nThen you are most likely using more than one keys. Follow the steps below:\n\n1. If not exist, create a `config` file in `~/.ssh` folder.\n2. Add the following code (adjust for your own needs):\n\n```\nHost github.com\n    Hostname github.com\n    IdentityFile ~/.ssh/github_beast\n    IdentitiesOnly yes\n\nHost bitbucket.org\n    Hostname bitbucket.org\n    IdentityFile ~/.ssh/atlassian\n    IdentitiesOnly yes\n```\n\nIf you want to see which public and private key are used for which host (bitbucket.org or github.com, etc.), then run the following commands:\n\n```\n$env:GIT_SSH_COMMAND = \"ssh -vvv\"\ngit clone your-remote-repo\n```\n\nDeveloped by [@tarikguney](https://github.com/tarikguney)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarikguney%2Fpowershell-git-profile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftarikguney%2Fpowershell-git-profile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarikguney%2Fpowershell-git-profile/lists"}