I am trying to execute a single command over ssh that contains `sub-code` or $(sub-code) (I use it all the time but I don\'t know the official name for that) to
ssh
It is better to use a heredoc with ssh to avoid escaping quotes everywhere in a more complex command:
ssh -T myServer <<-'EOF' uname -a | awk '{print $2}' exit EOF