Comment Comment by tbronchain I've had some pretty good success doing something like:ssh user@host << EOFYour scriptEOFBeware of local variables interpretation though! parent tbronchain 3 years ago
ssh user@host << EOF
Your script
EOF
Beware of local variables interpretation though!