fix(sshd): move login banner to zsh .zprofile
sshd Banner fires on every connection (scp, sftp, non-interactive), the wrong layer for a welcome banner. Move to .zprofile, interactive login shells only.
This commit is contained in:
@@ -63,14 +63,6 @@
|
||||
mode: "0600"
|
||||
loop: "{{ ssh_users.split() }}"
|
||||
|
||||
- name: Create an SSH banner
|
||||
ansible.builtin.template:
|
||||
src: templates/sshd_banner.j2
|
||||
dest: "{{ sshd_banner }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
|
||||
- name: Remove motd on Debian
|
||||
ansible.builtin.file:
|
||||
path: /etc/motd
|
||||
|
||||
Reference in New Issue
Block a user