I have a nodetimecheck.sh file on a server which has a command like this
echo
tput setaf 2; echo -n " What is my node's local time: "; tput setaf 7; date
When I login to my server with SSH and execute ./nodetimecheck.sh it displays properly.
However, if I try to execute the command from my local machine via ssh like this
ssh -i ~/.ssh/privkey username@serverip ./nodetimecheck.sh
It does display the time, but there is a nagging message
tput: No value for $TERM and no -T specified
Local machine running Ubuntu 18.04 LTS Remote server on GCP running Ubuntu 18.04 LTS