{"id":17528530,"url":"https://github.com/vancluever/ssh_keygen","last_synced_at":"2025-04-23T18:23:36.428Z","repository":{"id":59156256,"uuid":"46009395","full_name":"vancluever/ssh_keygen","owner":"vancluever","description":"Chef resource for SSH key creation (Halite pattern)","archived":false,"fork":false,"pushed_at":"2016-12-17T06:11:39.000Z","size":30,"stargazers_count":4,"open_issues_count":1,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-26T17:45:12.527Z","etag":null,"topics":["chef","chef-resource","cookbook","ssh-keygen","ssh-keys"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vancluever.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2015-11-11T20:57:23.000Z","updated_at":"2023-02-07T19:50:20.000Z","dependencies_parsed_at":"2022-09-13T20:03:30.889Z","dependency_job_id":null,"html_url":"https://github.com/vancluever/ssh_keygen","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vancluever%2Fssh_keygen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vancluever%2Fssh_keygen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vancluever%2Fssh_keygen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vancluever%2Fssh_keygen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vancluever","download_url":"https://codeload.github.com/vancluever/ssh_keygen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250488318,"owners_count":21438761,"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":["chef","chef-resource","cookbook","ssh-keygen","ssh-keys"],"created_at":"2024-10-20T15:44:01.371Z","updated_at":"2025-04-23T18:23:36.366Z","avatar_url":"https://github.com/vancluever.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Cookbook Version](https://img.shields.io/cookbook/v/ssh_keygen.svg)](https://supermarket.chef.io/cookbooks/ssh_keygen)\n\n# ssh_keygen Chef Resource\n\nThis single-purpose cookbook provides a resource to create SSH keys, as you\nwould expect to be created with `ssh-keygen`.\n\n## Usage and Example\n\nSay you wanted to create a user (named after `test-kitchen`) and create an\nSSH key for it:\n\n```\ngroup 'kitchen' do\n  action :create\nend\n\nuser 'kitchen' do\n  action :create\n  group 'kitchen'\n  home '/home/kitchen'\n  manage_home true\nend\n\ndirectory '/home/kitchen/.ssh' do\n  action :create\nend\n\nssh_keygen '/home/kitchen/.ssh/id_rsa' do\n  action :create\n  owner 'kitchen'\n  group 'kitchen'\n  strength 4096\n  type 'rsa'\n  comment 'kitchen@localhost'\n  passphrase 'changeme'\n  secure_directory true\nend\n```\n\nThe following would (after creating the `kitchen` user), generate an SSH private\nkey in `/home/kitchen/.ssh/id_rsa`, a public key in OpenSSH format in\n`/home/kitchen/.ssh/id_rsa.pub`, and ensure the `.ssh` directory has secure\npermissions as well (so mode `0700`).\n\n### Attributes\n\nThe attributes for the `ssh_keygen` resource are:\n\n * `action`: Only `:create` is supported. This resource does nothing if the file exists.\n * `path`: The path to save the SSH key to (if different from the resource name).\n * `owner`: The owner of the private and public key files.\n * `group`: The group ID for the private and public key files.\n * `strength`: Only `2048` and `4096` are supported currently, default is `2048`.\n * `type`: Only `rsa` is supported currently.\n   Ed25519 may be supported in future versions (feature request welcome!)\n * `comment`: Comment for the public key. Defaults to `user@host`.\n * `passphrase`: Passphrase for an encrypted private key. The default is no passphrase.\n * `secure_directory`: Sets the directory the key is saved in to mode to `0700`.\n\n## Author and License\n\n```\nCopyright 2015 Chris Marchesi\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvancluever%2Fssh_keygen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvancluever%2Fssh_keygen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvancluever%2Fssh_keygen/lists"}