Jupyter should now inform you that "The IPython Notebook is running at: <link>". Don't open the link yet, but look at the link carefully. Occasionally, the port number (after "http://localhost:") will be different from the one you specified. In this case, simply note down that number and use it as <PORT> for subsequent commands.

Set up SSH tunnel

Next, you're going to open a connection to the Notebook server you just created. Enter the following commands in a new terminal, replacing the bracketed values and entering passwords as before. This time, the "-L" flags tell the SSH program to use local port forwarding so that you can transfer data between your computer and the server via an SSH tunnel.