1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
# puppet-ssh_keygen
[](https://github.com/voxpupuli/puppet-ssh_keygen/blob/master/LICENSE)
[](https://travis-ci.org/voxpupuli/puppet-ssh_keygen)
[](https://coveralls.io/github/voxpupuli/puppet-ssh_keygen)
[](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)
#### Table of Contents
1. [Usage - Configuration options and additional functionality](#usage)
2. [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 <csanchez@maestrodev.com>
* Voxpupuli Team
|