I am able to execute the command:
cd /var/www/test; tail -f log/*.log; in remote with ssh connection as:
ssh -t email@example.com "cd /var/www/test; tail -f log/*.log; exec $SHELL -l"
which works great.
But as soon as I press
Control + C just to stop the command to do something else, it closes the connection saying
Connection to xx.yy.zz.aa closed.
How to prevent this and stay connected even after pressing
Control + C?