$ ssh -tt centos@13.251.192.208 "cat $dockercompose <<EOF > tast.txt && EOF" Warning: Permanently added '13.251.192.208' (ECDSA) to the list of known hosts. cat: version:: No such file or directory cat: 3: No such file or directory bash: line 1: services:: command not found bash: -c: line 2: syntax error near unexpected token `<' bash: -c: line 2: `<space><space><space>web:' Connection to 13.251.192.208 closed. ERROR: Job failed: exit code 1