mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-09 22:41:03 +01:00
Added sshd_config_files directory
This commit is contained in:
parent
9b09e5711b
commit
e9e58e92ec
@ -110,6 +110,9 @@ PrintMotd no # pam does that
|
|||||||
# override default of no subsystems
|
# override default of no subsystems
|
||||||
Subsystem sftp /usr/lib/ssh/sftp-server
|
Subsystem sftp /usr/lib/ssh/sftp-server
|
||||||
|
|
||||||
|
# Include specific configuration files
|
||||||
|
Include /etc/ssh/sshd_config_files/*
|
||||||
|
|
||||||
# Example of overriding settings on a per-user basis
|
# Example of overriding settings on a per-user basis
|
||||||
#Match User anoncvs
|
#Match User anoncvs
|
||||||
# X11Forwarding no
|
# X11Forwarding no
|
||||||
|
@ -1,2 +1,6 @@
|
|||||||
- name: sshd restart
|
- name: sshd restart
|
||||||
service: name=sshd state=restarted enabled=yes
|
systemd:
|
||||||
|
name: sshd
|
||||||
|
state: restarted
|
||||||
|
enabled: yes
|
||||||
|
daemon_reload: yes
|
||||||
|
@ -6,3 +6,6 @@ A wrong configuration of this role can lead to an lockout of the system which ju
|
|||||||
|
|
||||||
## PAM
|
## PAM
|
||||||
- https://www.google.com/search?client=firefox-b-d&q=sshd+why+to+deactivate+pam
|
- https://www.google.com/search?client=firefox-b-d&q=sshd+why+to+deactivate+pam
|
||||||
|
|
||||||
|
# see
|
||||||
|
- https://man7.org/linux/man-pages/man5/sshd_config.5.html
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
- name: create sshd_config_files directory
|
||||||
|
file:
|
||||||
|
path: /etc/ssh/sshd_config_files
|
||||||
|
state: directory
|
||||||
- name: create sshd_config
|
- name: create sshd_config
|
||||||
copy:
|
copy:
|
||||||
src: sshd_config
|
src: sshd_config
|
||||||
|
Loading…
Reference in New Issue
Block a user