As I've read on couple threads, I configured a script in /etc/ssh/sshrc for it to send an E-Mail every time when somebody connects over SSH. That works pretty good but recently I started using ansible to automate Linux Updates.Ansible opens multiple SSH connections which sends too many E-Mails for each system.What I want to do, is not use that script /etc/ssh/sshrc just for ansible user. I already tried creating empty file /home/USER/.ssh/rcBut that did not work.What am I doing wrong OR is there any other way to limit that to only one E-Mail?
↧