Send a message to teams channel on Linux server SSH connexion
1–10 of 21 posts
Re: Send a message to teams channel on Linux server SSH connexion
#2But this time it's for MS Teams channels, which is possible through Webhooks.
I thought that might be interesting for other persons so I share :) It can probably be adapted to any other webhooks, as soon as webhook urls accepts the JSON sent.
Re: Send a message to teams channel on Linux server SSH connexion
#3Re: Send a message to teams channel on Linux server SSH connexion
#4Re: Send a message to teams channel on Linux server SSH connexion
#5Re: Send a message to teams channel on Linux server SSH connexion
#6 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 connexion
#7This 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.
https://askubuntu.com/questions/179889/how-do-i-set-up-an-em...
Re: Send a message to teams channel on Linux server SSH connexion
#820 years ago this capability was bog-standard for any team communication protocol. We've lost so many good workflows in the 21st century.
Re: Send a message to teams channel on Linux server SSH connexion
#9This 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.
> ssh host -t "bash --noprofile"