malariagen / datalab

Repo for files and issues related to cloud deployment of JupyterHub.
MIT License
0 stars 1 forks source link

Permissions 0660 for '/home/jovyan/.ssh/id_rsa' are too open. #85

Closed leehart closed 3 years ago

leehart commented 3 years ago

Message (after Datalab has been restarted/upgraded and the user tries git fetch, etc.), since at least Jul 2019:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0660 for '/home/jovyan/.ssh/id_rsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/home/jovyan/.ssh/id_rsa": bad permissions
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Workaround:

chmod 600 ~/.ssh/id_rsa
slejdops commented 3 years ago

The latest user pod image release addresses this issue.