Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
FIX: personal ssh keys loading silently failed
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoguido committed Apr 21, 2020
1 parent fe513e0 commit b3d137a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docker/docs/extras.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ of them will be loaded when the environment starts.
- If you have to add one or more Supervisor programs, create one or more `.conf` files in
`docker/workspace/supervisor-programs` folder. Each of them will be loaded when the environment starts.

- If you want to load your ssh key into the workspace container, copy them into the `docker/workspace/ssh-keys` folder
and they will be loaded by the environment.
- If you want to load your ssh key into the workspace container, copy the `id_rsa` and `id_rsa.pub` into the
`docker/workspace/ssh-keys` folder: they will be loaded by the environment once it is built.

- If you want to load your ssl certificates to access your project through HTTPS, copy your `crt` file as `server.crt`
and your `.key` file as `server.key` into the `docker/workspace/ssl-certificates` folder and they will be loaded by the
Expand Down
6 changes: 3 additions & 3 deletions docker/workspace/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,10 @@ COPY ssh-keys /root/.ssh/host-keys/

RUN chmod 644 /etc/ssl/certificates/*
RUN if [find "/root/.ssh/host-keys" -mindepth 1 -print -quit 2>/dev/null | grep -q .]; then \
chmod 600 /root/.ssh/host-keys/* \
&& chmod 644 /root/.ssh/host-keys/*.pub \
chmod 600 /root/.ssh/host-keys/id_rsa \
&& chmod 644 /root/.ssh/host-keys/id_rsa.pub \
&& eval `ssh-agent -s` \
&& ssh-add /root/.ssh/host-keys/* \
&& ssh-add /root/.ssh/host-keys/id_rsa \
;fi

######################
Expand Down

0 comments on commit b3d137a

Please sign in to comment.