I'm trying to execute a remote script from local script by ssh. If I do these from command line (local) works:
ssh [email protected] <<'ENDSSH' /path_to_script/scrip.sh value ENDSSH
But when I put these in a sh from my local machine it says me:
Pseudo-terminal will not be allocated because stdin is not a terminal. ssh_exchange_identification: Connection closed by remote host
Someone could help me? Thanks!