Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

Use pipeline ssh key for clone and push


Hello, I need help.

I have a ssh pipeline key, created  Repository settings->Pipeline->SSH key-> Generate key.

And I want do two things:

1. Clone submodules using generated key. To configure it I add pipeline key to Repository settings->Access key in submodule repo. This part works fine.

2. Push artifacts to anohter repository, under another account, especialy created for this purpose. To do this I try add key to Personal settings-> SSH keys. And while I do I get the message "Someone has already added that key as an access key to a repository." - Yes I do it.

I can replace 1 and 2, but result the same. I can`t create second key for pipeline.

Anybody know how I can do clone and push, using same keya from pipeline, or it`s unlegal, and there is another way?

1 answer

0 votes


I would say is unlegal use the same ssh key. 

Regarding 2 different account, what is the purpose ? maybe better to use 1 account ?

Suggest an answer

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

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,513 views 4 8
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