News for hackers. Stuff that matters.
Re:Send a message to teams channel on Linux server SSH conne... by blueflow on Friday May 19, 2023 @08:24AM (#36000977)
This is done via profile.d and can be circumvented by executing anything else than a login shell:

  ssh host /bin/sh -i
Better would be enabling PAM via sshd_config and generating the message from there.
Re:Send a message to teams channel on Linux server SSH conne... by e12e on Friday May 19, 2023 @08:33AM (#36001074)
Re:Send a message to teams channel on Linux server SSH conne... by Ajunne on Friday May 19, 2023 @08:45AM (#36001221)
Or to actually get a login shell, but without loading the profile:

> ssh host -t "bash --noprofile"

Re:Send a message to teams channel on Linux server SSH conne... by zokier on Friday May 19, 2023 @09:14AM (#36001531)
there is also sshd ForceCommand that could be used here