setting up an aws gpu instance create new ssl certificate using openssland create cert key and cert pem files in the current ssl directoryopenssl req - -nodes -days -newkey rsa: -keyout "cert key-out "cert pem-batch configuring jupyter before you use jupyteryou need to touch up its default configuration follow these steps generate new jupyter config file (still on the remote instance)jupyter notebook --generate-config optionallyyou can generate jupyter password for your notebooks because your instance may be configured to be accessible from any ip (depending on the choice you made when configuring the security group)it' better to restrict access to jupyter via password to generate passwordopen an ipython shell (ipython commandand run the followingfrom ipython lib import passwd passwd(exit the passwd(command will ask you to enter and verify password after you doit will display hash of your password copy that hash--you'll need it soon it looks something like thissha : cf ec : edb fd eab aa note that this is hash of the word passwordwhich isn' password you should be using use vi (or your favorite available text editorto edit the jupyter config filevi ~jupyter/jupyter_notebook_config py the config file is python file with all lines commented out insert the following lines of python code at the beginning of the filepath to the private key you generated for the certificate path to the certificate you generated serves the notebooks locally gets the config object inline figure when using matplotlib get_config( notebookapp certfile '/home/ubuntu/ssl/cert pemc notebookapp keyfile '/home/ubuntu/ssl/cert keyc ipkernelapp pylab 'inlinec notebookapp ip '* notebookapp open_browser false notebookapp password 'sha : cf ec : edb fd eab aa don' open browser window by default when using notebooks password hash you generated earlier licensed to