79328205

Date: 2025-01-04 03:56:03
Score: 3.5
Natty:
Report link

Why not just copy over the ssh keys into the docker container?

RUN mkdir -p /root/.ssh

COPY id_rsa /root/.ssh/id_rsa
COPY id_rsa.pub /root/.ssh/id_rsa.pub

RUN chmod 600 /root/.ssh/id_rsa && chmod 644 /root/.ssh/id_rsa.pub

RUN ssh-keyscan -H myrepo.com >> /root/.ssh/known_hosts
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Why not
  • Low reputation (1):
Posted by: Dave982