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

SSH Host key location for built-in ssh server (Apache Mina)



Where do I find the SSH host keys that are used by the embedded Apache Mina sshd server? For proper security, I need an out-of-band way to verify the keys -- either by executing some command on the machine hosting bitbucket or within the Bitbucket WebUI.


1 comment

Okay, I think I figured it out! Here's what I did:

  1. Find where on the server the host key is located. Go to Administration (gear icon) > Support > Troubleshooting and support tools page. Select the System Information tab, and for look the bitbucket.shared.home variable under the Java Runtime Environment heading.
  2. Then, on the server, run the following command, where ${BB_SHARED} is the variable from step 1:
$ openssl rsa -in ${BB_SHARED}/config/ssh-server-keys.pem -RSAPublicKey_out \
    | ssh-keygen -i -m PEM -f /dev/stdin



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

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,835 views 10 16
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