{"id":20331002,"url":"https://github.com/cans/ssh-authorize","last_synced_at":"2026-05-30T18:31:39.120Z","repository":{"id":139898365,"uuid":"102248097","full_name":"cans/ssh-authorize","owner":"cans","description":"Ansible role to configure SSH authorization in bulk","archived":false,"fork":false,"pushed_at":"2018-04-08T08:18:11.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-04T12:28:41.023Z","etag":null,"topics":["ansible-role","authorization","authorized-keys","bulk","ssh","ssh-key","user-management"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cans.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-03T07:25:33.000Z","updated_at":"2017-09-03T08:14:51.000Z","dependencies_parsed_at":"2024-06-28T13:46:24.907Z","dependency_job_id":null,"html_url":"https://github.com/cans/ssh-authorize","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cans/ssh-authorize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cans%2Fssh-authorize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cans%2Fssh-authorize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cans%2Fssh-authorize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cans%2Fssh-authorize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cans","download_url":"https://codeload.github.com/cans/ssh-authorize/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cans%2Fssh-authorize/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33705207,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"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":["ansible-role","authorization","authorized-keys","bulk","ssh","ssh-key","user-management"],"created_at":"2024-11-14T20:18:26.907Z","updated_at":"2026-05-30T18:31:39.103Z","avatar_url":"https://github.com/cans.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"cans.ssh-authorize\n==================\n\nA simple role to setup SSH authorization on user account in bulk\n\nGiven a directory (`public_keys` by default) that contains a set of\nfiles each containing a public key, merges those files to produce the\n`~/.ssh/authorized_keys` file on the remote user account.\n\nThe actual file created depends on the value of several variables:\n\n    \"{{sshauthz_homes_dir}}/{{sshauthz_user}}/{{sshauthz_ssh_config_dirname}}/{{sshauthz_authorized_keys_filename}}\"\n\nWhich allows for fairly particualar setup if needed. But of course\ndefault value for those variable should be applicable for most setups.\n\nNote: As this role operates in a quite blunt fashion, for efficiency\nreasons, to avoid locking you out of the machine, this role offers\na mecanism to check you key exists in the source directory\n\n\nRequirements\n------------\n\nThis role has no particular requirements.\n\n\nRole variables\n--------------\n\n### Defaults\n\n- `sshauthz_homes_dir: base directory for user accounts on the remote\n  host (default: \"/home\")\n- `sshauthz_user`: the remote account for which set authorizations\n  (default: \"{{ansible_user_id}}\")\n- `sshauthz_ssh_config_dirname`: (default: \".ssh\")\n- `sshauthz_authorized_keys_filename`: Name of the authorization file\n  on the remote host (default: \"authorized_keys\")\n- `sshauthz_keys_directory`: directory in which find the keys to\n  authorize on the remote account (default \"{{ playbook_dir + '/files/public_keys/default' }}\")\n\n\nDependencies\n------------\n\nThis roles has no dependency.\n\n\nExample playbook\n----------------\n\n```yaml\n- hosts: etl, proxy\n  roles:\n    - { role: ssh-access, sshauthz_user: remus }\n    - { role: ssh-access, sshauthz_user: romolus, sshauthz_keys_directory: '~/public_keys' }\n```\n\n\nLicense\n-------\n\nGPLv2\n\n\nAuthor Information\n------------------\n\nCopyright © 2017, Nicolas CANIART.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcans%2Fssh-authorize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcans%2Fssh-authorize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcans%2Fssh-authorize/lists"}