{"id":17027349,"url":"https://github.com/alexwiench/update-authorized_keys","last_synced_at":"2026-05-11T03:19:18.836Z","repository":{"id":46112127,"uuid":"197246435","full_name":"alexwiench/Update-Authorized_Keys","owner":"alexwiench","description":"A short bash script that pulls your public keys from Github and adds them to your .ssh/authorized_keys file.","archived":false,"fork":false,"pushed_at":"2021-11-13T19:09:07.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-27T23:36:33.273Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexwiench.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-16T18:22:01.000Z","updated_at":"2021-11-13T19:09:10.000Z","dependencies_parsed_at":"2022-08-30T18:01:39.291Z","dependency_job_id":null,"html_url":"https://github.com/alexwiench/Update-Authorized_Keys","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexwiench%2FUpdate-Authorized_Keys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexwiench%2FUpdate-Authorized_Keys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexwiench%2FUpdate-Authorized_Keys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexwiench%2FUpdate-Authorized_Keys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexwiench","download_url":"https://codeload.github.com/alexwiench/Update-Authorized_Keys/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245009911,"owners_count":20546595,"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","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":[],"created_at":"2024-10-14T07:47:38.263Z","updated_at":"2026-05-11T03:19:18.789Z","avatar_url":"https://github.com/alexwiench.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Update ~/.ssh/authorized_keys with Github public keys\n\nA short bash script that pulls your public keys from `github.com/UserName.keys` and adds them to the ssh `authorized_keys` file of your current user.\n\n## Usage\n\nThis script can be run with or without arguments.\n`./updatekeys.sh` or `./updatekeys.sh username y`\n\nAdding your GitHub _username_ and _y_ will allow cause this script to run without prompting the user, making it suitable for crontab or startup scripts.\n\n\u003e **Script not running?**\n\u003e Use `chmod +x ./updatekeys.sh` to give it executable permissions.\n\n## How to run on the go\n\n### Download with cURL and run\n\n1. `curl -fsSL https://raw.githubusercontent.com/alexwiench/Update-Authorized_Keys/master/updatekeys.sh -o updatekeys.sh`\n2. `bash ./updatekeys.sh`\n\n\u003e You can also use your username as a command line arugment for automating or quick usage.\n\u003e Example: `./updatekeys.sh username`\n\n### Run without downloading\n\n`bash \u003c(curl -fsSL https://raw.githubusercontent.com/alexwiench/Update-Authorized_Keys/master/updatekeys.sh) username`\n\n---\n\n### Notes\n\n#### Sudo\n\nThis script is only designed to modify the `authorized_keys` file in the `$HOME` directory of your **current user** and will abort if it detects `sudo`.\nUse `su` to switch users if you must.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexwiench%2Fupdate-authorized_keys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexwiench%2Fupdate-authorized_keys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexwiench%2Fupdate-authorized_keys/lists"}