File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 6666default [ 'ssh' ] [ 'allow_groups' ] = [ ] # sshd
6767default [ 'ssh' ] [ 'print_motd' ] = false # sshd
6868default [ 'ssh' ] [ 'print_last_log' ] = false # sshd
69- default [ 'ssh' ] [ 'password_authentication' ] = false # sshd
69+ default [ 'ssh' ] [ 'password_authentication' ] = false # sshd + ssh
7070# set this to nil to let us use the default OpenSSH in case it's not set by the user
7171default [ 'ssh' ] [ 'use_dns' ] = nil # sshd
7272# set this to nil to let us detect the attribute based on the node platform
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ RhostsRSAAuthentication no
8888RSAAuthentication yes
8989
9090# Disable password-based authentication, it can allow for potentially easier brute-force attacks.
91- PasswordAuthentication no
91+ PasswordAuthentication <%= ((@node['ssh']['password_authentication']) ? "yes" : "no" ) %>
9292
9393# Only use GSSAPIAuthentication if implemented on the network.
9494GSSAPIAuthentication no
You can’t perform that action at this time.
0 commit comments