{"id":15022702,"url":"https://github.com/puppetlabs/puppetlabs-sshkeys","last_synced_at":"2025-04-05T07:06:17.015Z","repository":{"id":2121681,"uuid":"3064249","full_name":"puppetlabs/puppetlabs-sshkeys","owner":"puppetlabs","description":"Puppet Labs SSH Public Keys","archived":false,"fork":false,"pushed_at":"2025-02-04T02:05:00.000Z","size":1000,"stargazers_count":31,"open_issues_count":5,"forks_count":71,"subscribers_count":162,"default_branch":"master","last_synced_at":"2025-03-29T06:07:41.566Z","etag":null,"topics":["internal","module"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/puppetlabs.png","metadata":{"files":{"readme":"README.markdown","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":"2011-12-28T18:19:34.000Z","updated_at":"2024-11-28T16:27:58.000Z","dependencies_parsed_at":"2025-01-05T02:08:29.905Z","dependency_job_id":"757f1073-0b17-4793-9132-efe7c622ad11","html_url":"https://github.com/puppetlabs/puppetlabs-sshkeys","commit_stats":{"total_commits":357,"total_committers":160,"mean_commits":2.23125,"dds":0.8907563025210083,"last_synced_commit":"e9858fa36db54e6e9db939386610d8f53c9e6a2a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puppetlabs%2Fpuppetlabs-sshkeys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puppetlabs%2Fpuppetlabs-sshkeys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puppetlabs%2Fpuppetlabs-sshkeys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puppetlabs%2Fpuppetlabs-sshkeys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/puppetlabs","download_url":"https://codeload.github.com/puppetlabs/puppetlabs-sshkeys/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247299832,"owners_count":20916190,"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":["internal","module"],"created_at":"2024-09-24T19:58:17.276Z","updated_at":"2025-04-05T07:06:16.989Z","avatar_url":"https://github.com/puppetlabs.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Puppet Labs SSH Keys\nPuppet Labs engineers and technical people should add their SSH public keys to\nthe templates directory of this project. These keys are periodically copied to\nour Delivery systems that are not managed by Puppet.\n\n# Usage\nIf a host is not being managed by Puppet, then SSH access can be granted using\nthis process.\n\nIf the host has a cron that uses `/etc/cron.hourly/` then simply copy the\nscript into `/etc/cron.hourly/` like this:\n\n```bash\ncd /etc/cron.hourly/\ncurl -O https://raw.githubusercontent.com/puppetlabs/puppetlabs-sshkeys/master/templates/scripts/manage_root_authorized_keys\nchmod +x manage_root_authorized_keys\n```\n\nIf the cron on the system does not support `cron.hourly`, the following\ncrontab entry may be used.\n\n```bash\nmkdir -p /usr/local/bin\ncd /usr/local/bin\ncurl -O https://raw.githubusercontent.com/puppetlabs/puppetlabs-sshkeys/master/templates/scripts/manage_root_authorized_keys\nchmod +x manage_root_authorized_keys\ncrontab -e\n```\n\nThe entry should look like:\n\n```\n# min hour dom month dow command\n59 * * * * /usr/local/bin/manage_root_authorized_keys\n```\n\n# Adding Keys\nKeys should be added to the `templates/ssh/` directory of this repository.\nAdd your public key as `username.pub`, and then append it to `authorized_keys`.\nThis might look something like:\n\n```bash\n# Be sure to replace SSHKEY_DIR and USERNAME with the correct values!\nexport SSHKEY_DIR=~/working/puppetlabs-sshkeys/templates/ssh\nexport USERNAME=\"username\"\n\ncp ~/.ssh/id_rsa.pub ${SSHKEY_DIR}/${USERNAME}.pub\ncat ${SSHKEY_DIR}/${USERNAME}.pub \u003e\u003e ${SSHKEY_DIR}/authorized_keys\n```\n\nOnce your pull request has been merged into the master branch, the keys will\nautomatically be copied to all of the hosts using this script.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpuppetlabs%2Fpuppetlabs-sshkeys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpuppetlabs%2Fpuppetlabs-sshkeys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpuppetlabs%2Fpuppetlabs-sshkeys/lists"}