Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

SSH Connection UNAUTHORIZED - Pipeline to Bitbucket Repo Edited

Very similar setup to https://community.atlassian.com/t5/Bitbucket-Pipelines-questions/SSH-connection-Hosting-server-to-Bitbucket-Host-key-verification/qaq-p/836082 however I am using the SSH url and I am getting an UNAUTHORIZED error. 

This is during the context of an npm install depending on an SSH path.

npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git@bitbucket.org:team/repo.git
npm ERR!
npm ERR! Warning: Permanently added the RSA host key for IP address '18.205.93.1' to the list of known hosts.
npm ERR! Unauthorized
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128

 

Package.json looks like:

"lib""git+ssh://git@bitbucket.org:team/repo.git",

I already generated a pipeline SSH key and added the public key to the access keys for the repo. 

 

The ssh path was copied from the "clone" dialog in the target repo under the SSH heading.

1 answer

Answered my own question, I had the access keys setup in the source repo rather than the target repo. 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,227 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you