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
#PermitRootLogin prohibit-password
PermitRootLogin no
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10
@ -54,7 +55,7 @@ AuthorizedKeysFile .ssh/authorized_keys
#IgnoreRhosts yes
# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
PasswordAuthentication no
#PermitEmptyPasswords no
# Change to no to disable s/key passwords
@ -116,4 +117,4 @@ Subsystem sftp /usr/lib/ssh/sftp-server
# PermitTTY no
# ForceCommand cvs server
AllowUser {% for user in me %} {{ user.username }} {% endfor %}
AllowUser {% for user in me %}{{ user.username }}{% endfor %}

View File

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