I followed the example from this question to create the heredoc below:
ssh -t -t me@abc.xxx.com <<'ENDSSH'
cd my_dir
myprog arg1 arg2
ENDSSH
This will ssh into the remote machine and launch a program with a couple arguments. The issue is, when I am done using myprog, pressing control+C exits the entire ssh session instead of just quitting myprog.
How can I adjust my heredoc so it acts the same way as if I just typed those commands in manually?