When I connect remote I always run
cd ~/w/logs
tail -f some_file.log
but when I do
ssh host 'cd ~/w/logs; tail -f some_file.log'
all is OK, but after CTRL+C the connection is lost. (similar question, but does not cover CTRL+C problem)
How to run command after remote login?