Hey, I'm usingn AWS EC2 with security groups defined to allow requests from remote machines to my server.
While trying to fetch my server fingerprint in known hosts section, I receive an error saying that the SSH request fails. This is probably caused by my server not allowing the request.
I've tried adding api.bitbucket.org IP addresses defined here: https://confluence.atlassian.com/bitbucket/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall-343343385.html but the SSH request still fails.
What IP address does bitbucket use to make this request?
Thanks in advanced.
Hello @imri_barr,
Is it failing due to IP address or port number?
I receive an error saying that the SSH request fails.
What is the error you are receiving? Could you please enable DEBUG and provide output so we can help you out?
# Windows
set GIT_TRACE_PACKET=1
set GIT_TRACE=1
set GIT_CURL_VERBOSE=1
git clone ....
# Linux or GitBash
export GIT_TRACE_PACKET=1
export GIT_TRACE=1
export GIT_CURL_VERBOSE=1
git clone ....
Are you able to SSH to Bitbucket?
ssh -v bitbucket.org
Kind regards,
Rafael
Hey @rsperafico, I meant for the SSH request using fetch known hosts. I'm following this guide: https://confluence.atlassian.com/bitbucket/use-ssh-keys-in-bitbucket-pipelines-847452940.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @imri_barr,
in What IP address does bitbucket use to make this request?
Bitbucket uses a range of ip addresses, as per mentioned in https://confluence.atlassian.com/pages/viewpage.action?pageId=847452940, so you are required to whitelist them.
Kind regards,
Rafael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @imri_barr,
Valid IP addresses for Bitbucket Pipelines services
You can use this IP range to whitelist requests made by Bitbucket Pipelines services (not your build environments) to external systems such as performing an SSH fingerprint lookup. Note that this IP range may also be used by other Atlassian systems in addition to Bitbucket Pipelines.
IPv4 Outbound
104.192.136.0/21 |
Kind regards,
Rafael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i have to add all of them to my whitelist - from the pipeline list?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Alex,
Try adding the "Valid IP addresses for Bitbucket Pipelines services" which include:
They worked for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.