Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.2K
Views
bitbucket docker Permiso denegado (clave pública). fatal: no se pudo leer desde el repositorio remoto

Estoy haciendo un archivo docker con el siguiente código:

 # Update aptitude with new repo RUN apt-get update # Install software RUN apt-get install -y git # Make ssh dir RUN mkdir /root/.ssh/ # Copy over private key, and set permissions ADD id_rsa /root/.ssh/id_rsa # Create known_hosts RUN touch /root/.ssh/known_hosts # Add bitbuckets key RUN ssh-keyscan bitbucket.org >> /root/.ssh/known_hosts RUN chgrp 545 ~/.ssh/id_rsa RUN chmod 600 ~/.ssh/id_rsa # Clone the conf files into the docker container RUN git clone git@bitbucket.org:xxxxxx/teste.git RUN cd teste echo "# My project's README" >> README.md RUN git add README.md RUN git commit -m "Initial commit" RUN git push -u origin master

Pero cuando construí el archivo recibí el siguiente error:

Clonación en 'teste'... Advertencia: Se agregó de forma permanente la clave de host RSA para la dirección IP 'xxx.xxx.xxx.x' a la lista de hosts conocidos. Permiso denegado (clave pública). fatal: no se pudo leer desde el repositorio remoto.

Asegúrese de que tiene los derechos de acceso correctos y que el repositorio existe. El comando '/bin/sh -c git clone git@bitbucket.org:xxxxxxxx/teste.git' devolvió un código distinto de cero: 128

Generé id_rsa con PuTTY key gen y ya está almacenado en bitbucket.

¿Alguien puede ayudar?

about 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Creo que también debe agregar la clave privada correspondiente en el contenedor. Como mencionó que generó la clave id_rsa usando PuTTY, esa clave está en su máquina host.

Lo que necesita es agregar la clave id_rsa en su contenedor e id_rsa.pub en bitbucket.

Esta publicación podría ayudarte más.

about 4 years ago · Santiago Trujillo Report

0

Debe agregar la clave SSH pública del repositorio que está ejecutando el comando en la sección Claves de acceso del repositorio que está intentando clonar. Tuve el mismo problema .

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!