Bash function for setting up and tearing down remote tunnels