How can I close an ssh tunnel? I have opened an ssh tunnel with lucas-MacBook-Pro:~ donbeo$ ssh -D 8080 -f -C -q -N donbeo@149.157.140.64


How can I close it now?
You can kill the ssh process like others with

kill -9 $PID


You can find ssh session process ID with

pgrep ssh