Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

How to add fingerprint to known hosts when SSH is using non-standard port?

I have a server that is running a SSH server on a port that is not port 22, for example port 2222. I want to add it as a known host so that I can set up a SFTP pipeline to it, but I can't seem to figure out what "Host address" to put into the form for bitbucket to get the correct fingerprint.

username@hostname doesn't work (I can connect to it using "ssh -P 2222 username@hostname" and I can SFTP to this server using "sftp -P 2222 username@hostname").

The public key on the server is created with the appropriate username@hostname as comment (ssh-keygen -C username@hostname). This is confirmed with "cat ~/.ssh/" on the SSH server.

The error I receive in the form is "Unable to fetch fingerprints. Check host SSH connection and try again".

Can't I add a ssh server as a known host when it is running on another port than 22?

1 answer

1 accepted

0 votes
Answer accepted

I finally found this out myself, the correct syntax is hostname:portnumber.

Maybe specifying a port number is something worth at least mentioning once in the documentation, and maybe at least one example with just a hostname and one with hostname and port on

Suggest an answer

Log in or Sign up to answer
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...

366 views 2 10
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