Skip to content

Commit

Permalink
Adding the ability to disable password authentication to all the temp…
Browse files Browse the repository at this point in the history
…lates.
  • Loading branch information
Jake Vanderdray committed Jul 17, 2012
1 parent 06290f2 commit 5f4df4a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
7 changes: 4 additions & 3 deletions templates/centos/sshd_config.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Created by Chef. MANUAL EDITS WILL BE OVERWRITTEN

# $OpenBSD: sshd_config,v 1.80 2008/07/02 02:24:18 djm Exp $

# This is the sshd server system-wide configuration file. See
Expand Down Expand Up @@ -65,10 +67,9 @@ PermitRootLogin <%= node[:openssh][:permit_root_login] %>
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes

# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
# Change to no to disable tunnelled clear text passwords
PasswordAuthentication <%= node[:openssh][:password_authentication] %>
#PermitEmptyPasswords no
PasswordAuthentication yes

# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
Expand Down
2 changes: 1 addition & 1 deletion templates/suse-11.0/sshd_config.erb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ PermitRootLogin <%= node[:openssh][:permit_root_login] %>
#IgnoreRhosts yes

# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication no
PasswordAuthentication <%= node[:openssh][:password_authentication] %>
#PermitEmptyPasswords no

# Change to no to disable s/key passwords
Expand Down
2 changes: 1 addition & 1 deletion templates/suse-11.1/sshd_config.erb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ PermitRootLogin <%= node[:openssh][:permit_root_login] %>
#IgnoreRhosts yes

# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication no
PasswordAuthentication <%= node[:openssh][:password_authentication] %>
#PermitEmptyPasswords no

# Change to no to disable s/key passwords
Expand Down
2 changes: 1 addition & 1 deletion templates/ubuntu-10.04/sshd_config.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Package generated configuration file
# Created by Chef. MANUAL EDITS WILL BE OVERWRITTEN
# See the sshd_config(5) manpage for details

# What ports, IPs and protocols we listen for
Expand Down
4 changes: 2 additions & 2 deletions templates/ubuntu-10.10/sshd_config.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Package generated configuration file
# Created by Chef. MANUAL EDITS WILL BE OVERWRITTEN
# See the sshd_config(5) manpage for details

# What ports, IPs and protocols we listen for
Expand Down Expand Up @@ -51,7 +51,7 @@ PermitEmptyPasswords no
ChallengeResponseAuthentication no

# Change to no to disable tunnelled clear text passwords
#PasswordAuthentication yes
PasswordAuthentication <%= node[:openssh][:password_authentication] %>

# Kerberos options
#KerberosAuthentication no
Expand Down

0 comments on commit 5f4df4a

Please sign in to comment.