This question already has an answer here:
- About escape with SSH pipe 2 answers
I want to do some script on a remote mashine through ssh:
ssh Server "V=\$\(lua -e 'print\(require\(\\\"platform_info\\\"\).get_image_name\(\)\)'\); echo \$V"
echo $V at the end gives me no output.
I tried a lot of different masking with backslashes, but I cannot get this right.
How do I mask the command correctly and get the output of the lua command?