Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Bitbucket Pipeline SSH Access to Localhost on Windows

levelup
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 11, 2023

Hi Bitbucket Community,

I hope this message finds you well. I'm currently facing an issue while trying to configure my Bitbucket Pipeline to access my localhost via SSH on Windows. I've successfully set up SSH access to my localhost using the localhost IP, but when attempting to access it through Bitbucket Pipeline, I encounter an error.

Here are the details of my setup:

Localhost Configuration:

  • Operating System: Windows
  • Localhost IP: [Your Localhost IP]
  • SSH Key Setup:
    • Generated SSH keys using [Specify the tool or method]
    • Added the public key to the authorized_keys file on localhost

Troubleshooting Steps Taken:

I would greatly appreciate any insights or suggestions on how to resolve this issue. If additional information is needed, please let me know, and I'll provide it promptly.

Thank you in advance for your assistance!

Best regards,

1 answer

1 vote
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 12, 2023

Hello @levelup and welcome to the Community!

In order for us to investigate further, I would like to ask a few questions about your setup : 

  • Are you using self-hosted runner in your pipeline? If yes, is it a Linux docker runner or a Windows runner?  
    I ask this because since you mentioned you only have a local host address in your server, you will only be able to access this private IP if using a selfhosted runner in the same network. If you are using cloud runners (the build runs in Atlassian infrastructure), then your server will need a public IP address, so Pipelines can access that IP over the internet.
  • Could you share with us the part of your YML script where you run the SSH command? 
  • Can you share the full log of your pipeline build containing the error you received? 

If you have any questions, feel free to ask.

Thank you, @levelup !

Patrik S

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events