I have an ssh session and I'm running a script. I want to terminate the script without exiting the ssh session. If I run the script in a local PC, I press Ctrl+C and the script stops, while if I press Ctrl+C in remote session I close the ssh session itself (and also the script in this case). How can I stop the script in remote shell without interrupting the ssh connection?
I connect with the usual
ssh user@ip command,
in a standard Ubuntu distribution, using the Git Bash from Windows.
In my Windows client the
.ssh/config is as follows:
Host 192.168.XXX.YYY HostName 192.168.XXX.YYY User auser ForwardAgent yes Host 192.168.XXX.ZZZ HostName 192.168.XXX.ZZZ User auser
They are not related to the remote server that I'm using.