Skip to content

Commit

Permalink
Merge a49e0da into 31b8fb7
Browse files Browse the repository at this point in the history
  • Loading branch information
dmerrick committed Feb 10, 2015
2 parents 31b8fb7 + a49e0da commit c7607fe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -26,6 +26,8 @@ This cookbook provides secure ssh-client and ssh-server configurations.
* `['ssh']['allow_tcp_forwarding']` - `false` to disable TCP Forwarding. Set to `true` to allow TCP Forwarding
* `['ssh']['allow_agent_forwarding']` - `false` to disable Agent Forwarding. Set to `true` to allow Agent Forwarding
* `['ssh']['use_pam']` - `false` to disable pam authentication
* `['ssh']['print_motd']` - `false` to disable printing of the MOTD
* `['ssh']['print_last_log']` - `false` to disable display of last login information

## Data Bags

Expand Down
2 changes: 2 additions & 0 deletions attributes/default.rb
Expand Up @@ -59,5 +59,7 @@
default['ssh']['allow_tcp_forwarding'] = false # sshd
default['ssh']['allow_agent_forwarding'] = false # sshd
default['ssh']['use_pam'] = false # sshd
default['ssh']['print_motd'] = false # sshd
default['ssh']['print_last_log'] = false # sshd
# set this to nil to let us detect the attribute based on the node platform
default['ssh']['use_privilege_separation'] = nil
4 changes: 2 additions & 2 deletions templates/default/opensshd.conf.erb
Expand Up @@ -166,8 +166,8 @@ X11UseLocalhost yes
# ===================


PrintMotd no
PrintLastLog no
PrintMotd <%= ((@node['ssh']['print_motd']) ? 'yes' : 'no' ) %>
PrintLastLog <%= ((@node['ssh']['print_last_log']) ? 'yes' : 'no' ) %>
#Banner /etc/ssh/banner.txt
#UseDNS yes
#PidFile /var/run/sshd.pid
Expand Down

0 comments on commit c7607fe

Please sign in to comment.