Version information
released Jan 25th 2014
This module has been deprecated by its author since Aug 24th 2022.
Start using this module
Documentation
attachmentgenie/ssh — version 1.2.2 Jan 25th 2014
Puppet SSH Module
Module for configuring ssh.
Tested on Debian GNU/Linux 6.0 Squeeze and Ubuntu 10.4 LTS and 12.04 LTS with Puppet 2.6 and 2.7. Patches for other operating systems are welcome.
Usage
The ssh::client
class installs the ssh client:
include ssh::client
The ssh::server
class installs and configures the sshd:
include ssh::server
You can specify the port the sshd should listen to by including the class with this special syntax:
class { "ssh::server":
port => 20009,
}
You can also restrict access for only certain users:
class { "ssh::server":
allowed_users => ["uggedal", "manager"],
}
And you can permit root logins (not recommended):
class { "ssh::server":
permit_root_login => 'yes',
}
To permit root logins could be a serious security issue. In most cases you should
use something like sudo
instead.
You can use ssh::user
to add an authorized ssh key to an existing user
for effortless authentication with ssh:
ssh::user { "uggedal":
key => "a8a7dgf7ad8j13g",
comment => "uggedal.com",
}
Dependencies
- puppetlabs/stdlib (>=2.2.1)
Copyright (C) 2011 by Eivind Uggedal <eivind@uggedal.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.