Hello. Is there a way to copy one public key from one repo to another ? In Stash I can only see the beginning of the key and I can't find the original file with the complete public key.

It's an emergency situation. I'll reset/cleanup stuff later.

2 answers

Hi Simone,

You can check the SSH Keys for a repository using the REST API function /rest/keys/1.0/projects/{projectKey}/repos/{repositorySlug}/ssh.

Please notice that, if you hover the key in the UI, Stash is going to show you the full key. I understand though you wouldn't be able to copy it this way, so for now you will need to get it by using the REST API function above.

I think this would be interesting to have in the UI though, so I created a suggestion to have this implemented. You can see it at https://jira.atlassian.com/browse/STASH-7352. Please feel free to add any comments to it, as well as vote and add yourself as a watcher to track its progress.

Regards,

Gustavo

You can probably save your full public key from <stash server>/plugins/servlet/ssh/account/keys

On the other hand, in an emergency, you will also need your private key, which you also seem to be missing.

I think the best course of action would be to generate a new key (with a backup somewhere), add it to your Stash profile and make your clients use the new one.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,850 views 1 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you