i am trying to run a bash script on a remote machine. If I open a ssh connection in a terminal, i can easily run the script. But when i run it like that:
ssh user@ip < /etc/script
I get an Error:
TERM enviroment variable not set.
What am i doing wrong here?