The question I have is vague, but it's vague on purpose because I don't want to bias the answers toward a needlessly specific solution.
Let's say I have Linux servers A and B, where server A has a web application on it and server B doesn't.
Let's say I want server A to tell server B to execute a certain set of shell commands. Because I imagine someone will ask, let's say that the commands I want to run are:
mkdir /var/www/git/repo-1.git cd /var/www/git/repo-1.git git --bare init
What's the simplest way I could get server A to tell server B to execute these commands?
FWIW, security IS an important factor in whatever solution I use.