title: Cannot run local Bash script on remote system with ssh -tt
body: <p>Having trouble with bash. Essentially there are two Redhat nodes, WS01 and DEV01. The script on WS01 that I want to run on DEV01 asks for certain info prompts through a <code>read -p</code>. Expect is not installed and cannot be (unfortunately).</p>
  
  <p>When I enter...</p>
  
  <pre><code>ssh root@DEV01 /path/to/script.sh
  </code></pre>
  
  <p>it returns (BoKS message)</p>
  
  <pre><code>no terminal authorization granted
  </code></pre>
  
  <p>If I do...</p>
  
  <pre><code>ssh -tt root@DEV01 /patch/to/script.sh
  </code></pre>
  
  <p>it returns</p>
  
  <pre><code>TERM: not defined
  Illegal variable name
  </code></pre>
  
  <p>Script runs fine when run through a regular ssh session though. Checked term with <code>echo $TERM</code> and it was set to <code>vt100</code> on both systems. Default shell is <code>csh</code> on both systems so I thought it was defaulting to that. tried to put variations of calling bash in the ssh command but everything showed the same results. </p>
  
  <p>Other variations of that ssh command (Feels like I've tried most of them) have unfortunately also given the same results.</p>
  
  <p>Also tried </p>
  
  <pre><code>ssh -tt root@DEV01 "$(&lt; script.sh)"
  </code></pre>
  
  <p>and basically anything else I could find on the internet and still nothing. Beating my head against the wall at this point. </p>
  
  <p>Ultimately I just need a way to run a bash script that is local on the machine, onto a remote host, and that allows an interactive shell that will let the user input data when it prompts for it. Thanks in advance for the help.</p>