What if the "verify private key" step doesn't work?

On https://confluence.atlassian.com/bitbucketserverkb/git-operations-fail-permission-denied-publickey-779171755.html, when I run the final "Resolution" steps, I get errors:

ssh -p 7999 -i ~/.ssh/id_rsa -vT git@localhost
OpenSSH_6.9p1, LibreSSL 2.1.8

debug1: Reading configuration data /etc/ssh/ssh_config

debug1: /etc/ssh/ssh_config line 20: Applying options for *

debug1: /etc/ssh/ssh_config line 53: Applying options for *

debug1: Connecting to localhost [::1] port 7999.

debug1: connect to address ::1 port 7999: Connection refused

debug1: Connecting to localhost [fe80::1%lo0] port 7999.

debug1: connect to address fe80::1%lo0 port 7999: Connection refused

debug1: Connecting to localhost [127.0.0.1] port 7999.

debug1: connect to address 127.0.0.1 port 7999: Connection refused

ssh: connect to host localhost port 7999: Connection refused

 

But then the article doesn't say what to do if it fails like mine. What can I try to do next?

2 answers

1 vote

Hello Keenan,

debug1: connect to address ::1 port 7999: Connection refused

Is the port 7999 open?

You can check which ports are LISTEN. Please, refer to http://www.cyberciti.biz/faq/how-do-i-find-out-what-ports-are-listeningopen-on-my-linuxfreebsd-server/ for further information.

Kind regards,
Rafael P. Sperafico

Hey Rafael,

Looks like port 7999 isn't open. I was just using that because it was in the instructions on that page. What else could I try?

0 vote

Hi Keenan,

SSH comes disabled by default with Bitbucket server. The steps to enable it are described here:

Also make sure that this port is open on the firewall or IPTables rules.

Best regards,
Thiago Bomfim
Atlassian Support

Hey Thiago... I got to this page trying to troubleshoot issues pulling from my Bitbucket repository to a specific external hosting server.

It works to another server I tried, but not the one I need.

I didn't realize I was looking at a support article for a different Atlassian product...

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,942 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