oops, script wasn't working before. Fixed issue by adding -N option to ssh command since we are just port forwarding and have no need for stdio.