Hello all there,
I use the following bitbucket-pipelines.yml in my repository:
_____________________________
ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory
+ ssh -v -t bitbucket@xxx.xxx.xxx.xxx
Now, I get the following error:
Hi Okhtay,
The error relating to the host key in conjunction with the askpass error highlights two steps that may help you to resolve the issue:
ssh-keygen -R bitbucket.org && curl https://bitbucket.org/site/ssh >> ~/.ssh/known_hosts
Please perform the above and let me know if it completes.
Cheers!
- Ben (Bitbucket Cloud Support)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ben
Thank you for your reply.
I have created a public/private key at https://bitbucket.org/okhsat/okhtay/admin/pipelines/ssh-keys , and then added the IP address of my digitalocean droplet to the known hosts section of that page to get the host's finger print. Then I coppied this bitbucket public key to ~/.ssh/authorized_keys on my droplet host. On my droplet host, I have created a special user for this purpose with the name "bitbucket" and have started a ssh agent for this user. So, the aforementioned bitbucket public key has been added to the ~/.ssh/authorized_keys of this droplet user. I have previously added bitbucket.org to the known hosts of "bitbucket" droplet user on my droplet host, but I did it again using the command you gave:
ssh-keygen -R bitbucket.org && curl https://bitbucket.org/site/ssh >> ~/.ssh/known_hosts
. However, there is no change, and I still get the previous error:
The interesting point is that I can connect to my droplet host on my PC using the simple command: ssh bitbucket@xxx.xxx.xxx.xxx, and I have successfully configured my PC and the droplet host for this purpose, but I can not do the same thing for bitbucket.org to run a simple pipeline.
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.