harvard / cloudJHub

An implementation of JupyterHub within the Amazon cloud, with automatic scaling up and down
BSD 3-Clause "New" or "Revised" License
125 stars 14 forks source link

Key Path error #8

Closed alexraju91 closed 4 years ago

alexraju91 commented 6 years ago

launch_cluster/secure.py.example

KEY_NAME = "aws.pem changeme"
KEY_PATH = "~/.ssh/%s" % KEY_NAME

So, if I give as below, it's obviously wrong. THE KEY_NAME shouldn't have the .pem extension, whereas the KEY_PATH needs to have.

KEY_NAME = "something.pem"
KEY_PATH = "~/.ssh/%s" % KEY_NAME
farassadek commented 6 years ago

Alex The doc in https://github.com/harvard/cloudJHub/blob/master/Documentation/installation.md if you copy a key "jupyter_key.pem" to for example /home/ec2-user/.ssh then the secure.py should be

AWS_ACCESS_KEY_ID = "" AWS_SECRET_KEY = "" KEY_NAME = "jupyter_key" KEY_PATH = "/home/ec2-user/.ssh/%s.pem" % KEY_NAME . .

alexraju91 commented 6 years ago

Thank you @farassadek . I think you need to make the necessary changes in secure.py.example file also as people would be making their secure.py file from this.

farassadek commented 6 years ago

I believe you are right, actually you can update and merge to the repo

farassadek commented 4 years ago

The key might not not be .pem.