Hello,
I did create a private project, and set up an ubuntu server with a lxd container where is my app. I pasted ssh key of my container on bitbucket project, but when I do git pull it always asks me the password. I thought if I set ssh key I won't be asked for password, am I wrong?
thanks a lot
What is the url of your git remote on your ubuntu server? Please check if it is an ssh:// or http:// url.
You can check it with: git remote -v
If it's http it is not using your ssh key and you have to change your remote url.
Another possibility is that your ssh key is password protected.
Hey Charlie,
thanks for your answer! git remote -v gives:
origin https://setsrl@bitbucket.org/setdevs/setonline.git (fetch)
origin https://setsrl@bitbucket.org/setdevs/setonline.git (push)
so I guess it should be ssh:// to work as expect! How do I set that?
thanks a lot!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
that's right! You can change it easily with:
git remote set-url origin ssh://git@bitbucket.org/setdevs/setonline.git
I'm not 100% sure of that git ssh url in my example but you can check it easily on Bitbucket. Under the clone button you should have two options: ssh and https
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.