I'm using this ssh command:
ssh -fnN -L $LOCALPORT:$REMOTEHOST:$REMOTEPORT $HOST
This creates my ssh connection in the background and forwards that port to the remote host through another host. This is great, and allows me to use my service behind a firewall by connecting to a server which can access both networks.
I need to stop this ssh connection when done, and I'm not sure how.