How can I use ssh without password?

Look like this is a simple question?

But I try to config many times and doesn't work.

I check with

ssh -T

I get message "logged in as {Account name}."

When I try to pull my code to server still say "Permission denied (publickey)."

Anyone can suggest or help me?

1 answer

You should be able to add ssh keys to your bitbucket account as described here:

Is your issue that you have done that and it is still not working?  


I found the problem. Refference from this

But I not sure how to fix? Can you infom this?

Based on that it seems that using "git clone" uses root permissions.  Sounds like the easiest thing to do is just use sudo

sudo -u myuser git clone .........


Let's hold off on sudo for a bit, please. (It may not help, and it may make things worse.)


You can add the GIT_SSH_COMMAND environment variable to individual git transactions to see details of the SSH session itself:

GIT_SSH_COMMAND="ssh -v" git clone

You can use GIT_SSH_COMMAND with any network-based transaction (push, pull, clone, ls-remote, etc.) as long as the transaction is SSH-based. (It won't do much good to play with the SSH command if you're using HTTPS to connect.)

It's also possible that the repo in question doesn't permit your user access. You can confirm that by visiting that repo in your browser; if you can see code there, then you should be able to clone.

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