I've installed x11vnc server on my Trusty machine. I connect through SSH with a command like this:
But if I press Ctrl+C in the local terminal, x11vnc does not stop properly. Running ps aux on the remote system shows several instances still running. What is the correct way to stop it?
Code:
ssh -L 5900:localhost:5900 remotehost 'x11vnc -localhost -display :0'