https://github.com/voxpupuli/puppet-ssh_keygen
Generation of ssh keys with ssh-keygen
https://github.com/voxpupuli/puppet-ssh_keygen
hacktoberfest puppet
Last synced: 3 months ago
JSON representation
Generation of ssh keys with ssh-keygen
- Host: GitHub
- URL: https://github.com/voxpupuli/puppet-ssh_keygen
- Owner: voxpupuli
- License: apache-2.0
- Created: 2012-12-06T18:59:40.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2025-12-29T19:27:15.000Z (6 months ago)
- Last Synced: 2026-02-19T12:42:14.173Z (4 months ago)
- Topics: hacktoberfest, puppet
- Language: Ruby
- Homepage: https://forge.puppet.com/puppet/ssh_keygen
- Size: 223 KB
- Stars: 17
- Watchers: 43
- Forks: 24
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# puppet-ssh_keygen
[](https://github.com/voxpupuli/puppet-ssh_keygen/actions?query=workflow%3ACI)
[](https://github.com/voxpupuli/puppet-ssh_keygen/actions/workflows/release.yml)
[](https://forge.puppetlabs.com/puppet/ssh_keygen)
[](https://forge.puppetlabs.com/puppet/ssh_keygen)
[](https://forge.puppetlabs.com/puppet/ssh_keygen)
[](https://forge.puppetlabs.com/puppet/ssh_keygen)
[](http://www.puppetmodule.info/m/puppet-ssh_keygen)
[](LICENSE)
[](#authors)
## Table of Contents
1. [Usage - Configuration options and additional functionality](#usage)
1. [Development - Guide for contributing to the module](#development)
## Usage
Generate ssh keys for any user using ssh_keygen, that needs exist before using
the module
```puppet
ssh_keygen { 'john': }
```
or if not using the default `/home/john`
```puppet
ssh_keygen { 'john':
home => '/var/home'
}
```
the key comment can also be overriden with
```puppet
ssh_keygen { 'john':
comment => 'john key'
}
```
Generate a dsa key
```puppet
ssh_keygen { 'john':
type => 'dsa'
}
```
specify the bit length
```puppet
ssh_keygen { 'john':
bits => 4096
}
```
Generate new host key
```puppet
ssh_keygen { 'root':
filename => '/etc/ssh/ssh_host_rsa_key'
}
```
## Development
This module is maintained by [Vox Pupuli](https://voxpupuli.org/). Voxpupuli
welcomes new contributions to this module, especially those that include
documentation and rspec tests. We are happy to provide guidance if necessary.
Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for more details.
### Authors
* Carlos Sanchez
* Vox Pupuli Team
Carlos initially created the module. Afterwards it got migrated to Vox Pupuli.