I\'m trying to write a Bash script that will SSH into a machine and create a directory. The long-term goal is a bit more complicated, but for now I\'m starting simple. Howev
The shell on the local host is doing variable substitution on $NOW and $BACKUP because the "EOI" isn't escaped. Replace
ssh tunneluser@111.222.333.444 <
with
ssh tunneluser@111.222.333.444 <<\EOI