How to run sudo on a remote machine:
ssh user@domain.com 'sudo echo "foobar"'
Error:
sudo: no tty present and no askpass program specified
Solution:
ssh -t user@domain.com 'sudo echo "foobar"'
A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.