Skip to content

Instantly share code, notes, and snippets.

@anirudhacharya
Last active October 16, 2019 19:08
Show Gist options
  • Save anirudhacharya/e6304aebefbddd44f5ac8e497e2da5e5 to your computer and use it in GitHub Desktop.
Save anirudhacharya/e6304aebefbddd44f5ac8e497e2da5e5 to your computer and use it in GitHub Desktop.

On the server

  • Install jupyter and ipython - sudo pip install jupyter and sudo pip install ipython

  • make server password - jupyter notebook password

  • make ssl directory - mkdir ssl

  • Inside the directory, create private and public keys with openssl - openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout mykey.key -out mycert.pem

  • client connecting to server - ssh -i ~/mykeypair.pem -N -f -L 8157:localhost:8888 ubuntu@ec2-###-##-##-###.compute-1.amazonaws.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment