question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Host Key Verification Failed (bitbucket)

See original GitHub issue

I have a package hosted in a private bitbucket repository and I’m using your script the following way: - name: Install SSH key uses: shimataro/ssh-key-action@v2 with: key: ${{ secrets.BITBUCKET_ACCESS_KEY }} known_hosts: ${{ secrets.KNOWN_HOSTS }}

and KNOWN_HOST value is: bitbucket.org ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAubiN81eDcafrgMeLzaFPsw2kNvEcqTKl/VqLat/MaB33pZy0y3rJZtnqwR2qOOvbwKZYKiEO1O6VqNEBxKvJJelCq0dTXWT5pbO2gDXC6h6QDXCaHo6pOHGPUy+YBaGQRGuSusMEASYiWunYN0vCAI8QaXnWMXNMdFP3jHAJH0eDsoiGnLPBlBp4TNm6rYI74nMzgz3B9IikW4WVK+dc8KZJZWYjAuORU3jc1c/NPskD2ASinf8v3xnfXeukU0sJ5N6m5E8VLjObPEO+mN2t/FZTMZLiFqPWc/ALSqnMnnhwrNi2rbfg/rd/IpL8Le3pSBne8+seeFVBoGqzHM9yXw==

However, yarn install always fails with “Host Key Verification Failed”.

(I went reading #56 but still the same)

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:21 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
jacktuckcommented, Aug 12, 2020

I’ve had to echo "" >> ~/.ssh/known_hosts after shimataro/ssh-key-action to ~/.ssh/known_hosts, otherwise when the next entry to ~/.ssh/known_hosts is added (automatically) it is clobbered onto the same line.

     - name: install bitbucket ssh key
        uses: shimataro/ssh-key-action@v2
        with:
          key: ${{ secrets.BITBUCKET_SSH }}
          name: bitbucket-key
          known_hosts: ${{ secrets.BITBUCKET_HOST }}
          config: |
            Host bitbucket.org
              IdentityFile ~/.ssh/bitbucket-key
      - run: echo "" >> ~/.ssh/known_hosts
1reaction
spaquetcommented, Jun 20, 2020

But looks like it went through this morning. I will confirm on Monday as I’m not going to receive new PR this week-end.

Read more comments on GitHub >

github_iconTop Results From Across the Web

BitBucket: Host key verification failed - git - Stack Overflow
nothing about authentication, so you are working on the wrong field. It means that the host key of the bitbucket.org is not in...
Read more >
Bitbucket Pipeline Host key verification failed. (Centos)
I'll try to set up the bitbucket pipeline for my deployments. I'll add the pipeline to the bitbucket repository and configure the SSH...
Read more >
How to fix 'Host key verification failed' SSH Error
First locate your 'known_hosts' file, and open in a general text editor. · Remove the line containing the host name of the server...
Read more >
jenkins stderr: no rsa host key is known for bitbucket.org and ...
Jenkins; JENKINS-69310; Host key verification failed.Could not read from remote repository. Log In. ... stderr: No RSA host key is known for bitbucket.org...
Read more >
Bitbucket Host key verification failed. but key is added to account
Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found