Menu
Apache MXNet on AWS
Developer Guide

Configure a Linux Client

Configure the Linux client

  1. Open a terminal.

  2. Run the following command to forward all requests on local port 8157 to port 8888 on your remote EC2 instance. Update the command by replacing ec2-###-##-##-###.compute-1.amazonaws.com with the public DNS name of your EC2 instance.

    Copy
    $ ssh -i ~/mykeypair.pem -L 8157:127.0.0.1:8888 ubuntu@ec2-###-##-##-###.compute-1.amazonaws.com

    This command opens a tunnel between your client and the remote EC2 instance that is running Jupyter server. After running the command, you can access the Jupyter notebook server at https://127.0.0.1:8157.

  3. Create a directory for storing Jupyter notebooks. This is your Jupyter workspace.

    Copy
    $ mkdir ~/mynotebooks $ cd ~/mynotebooks
  4. Start the Jupyter notebook server.

    Copy
    $ jupyter notebook

    By default, the server runs on port 8888. If the port is not available, the server uses the next available port. The Jupyter terminal shows the port on which the server is listening.

Next Step

Step 4: Test by Logging in to the Jupyter Server