I am connecting to a data cluster and following these steps:
(I obviously have my .ssh/config file set up properly)
Open the tunnel
SSH into the cluster
Try to bind a port to the server so I can use a Jupyter notebook through this command:
ssh -N -L 22127:localhost:22127 [cluster_name]
Run the ipython command on the cluster through:
ipython notebook --ip=127.0.0.1 --port=22127 --no-browser
In the end, on step 3, I always get a "Bad local forwarding error". Please note that I have people next to me who have the exact same commands and configurations on the .ssh/config file and can connect and run the Jupyter server.