Config sshd

This commit is contained in:
Bertrand Benjamin 2018-08-24 10:13:15 +02:00
parent 203d2525aa
commit 75a6d2ac1b
2 changed files with 10 additions and 2 deletions

View File

@ -30,6 +30,7 @@
#LoginGraceTime 2m #LoginGraceTime 2m
#PermitRootLogin prohibit-password #PermitRootLogin prohibit-password
PermitRootLogin no
#StrictModes yes #StrictModes yes
#MaxAuthTries 6 #MaxAuthTries 6
#MaxSessions 10 #MaxSessions 10
@ -54,7 +55,7 @@ AuthorizedKeysFile .ssh/authorized_keys
#IgnoreRhosts yes #IgnoreRhosts yes
# To disable tunneled clear text passwords, change to no here! # To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes PasswordAuthentication no
#PermitEmptyPasswords no #PermitEmptyPasswords no
# Change to no to disable s/key passwords # Change to no to disable s/key passwords

View File

@ -3,3 +3,10 @@
template: template:
src: files/sshd_config src: files/sshd_config
dest: /etc/ssh/sshd_config dest: /etc/ssh/sshd_config
notify: restart sshd
- name: Enable SSH daemon
service:
name: sshd
state: started
enabled: yes