Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

At random the container loses the ssh-keys #40

Open
teroelonen opened this issue Feb 20, 2020 · 3 comments
Open

At random the container loses the ssh-keys #40

teroelonen opened this issue Feb 20, 2020 · 3 comments
Labels
question Further information is requested wontfix This will not be worked on

Comments

@teroelonen
Copy link
Member

To solve this temporarily do the following:

  1. Go to stonehenge root folder and run:
    make addkey
  2. Go to the project with issues and run:
    docker-compose up -d --force
  3. Go into your container and run:
    ssh-add -L
    You should now have your keys in the container. If not - pray to god.
@back-2-95 back-2-95 added the question Further information is requested label May 6, 2021
@back-2-95
Copy link
Member

Verified times when keys are "lost":

  • When computer restarts
  • When Docker itself is updated (and restarts

Rationale:

Containers have rule restart: unless-stopped which means they get restarted in case of OS or Docker gets rebooted.

But as adding keys is not part of Docker itself, that cannot be automised to happen on reboots.

Possible solution:

Change adding keys to manual operation ALWAYS. It might be security related decision as now we add default keys without asking on up'ping.

@back-2-95 back-2-95 added the wontfix This will not be worked on label Jun 29, 2021
@back-2-95
Copy link
Member

There might be other occasions ofc when the whole SSH_AGENT stuff gets somehow disrupted.

@back-2-95
Copy link
Member

plist could help on mac #61

@druidfi druidfi locked as resolved and limited conversation to collaborators Dec 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested wontfix This will not be worked on
Development

No branches or pull requests

2 participants