Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

paramiko.ssh_exception.AuthenticationException: Authentication failed


I am trying to deploy the docker container according to different environment.

I have saved the environment variables in deployment variables.

Everything runs fine but when I execute docker-compose -H $DOCKER_HOST --verbose -p sg_dev up -d the pipeline fails with the error paramiko.ssh_exception.AuthenticationException: Authentication failed 

What am I missing here


2 answers

Hello @Halyna Berezovska

I changed from DOCKER_HOST="ssh://$QA_USER@$QA_HOST" docker-compose --verbose -p sg_qa up -d (where QA_USER and QA_HOST are configured in the repository variable.

The deployment variable I am pointing to in dev which is configured in deployments tab 
Total 4 deployments

- Dev
- QA
- Stage
- Prod

Hello @Husain Mithaiwala !

Basically, this could be docker-compose problem similar to this one .

Check that you have right docker-compose config described in this issue.

It also depends on what ssh auth you have in docker containers you are working on and what ssh config you have in pipeline and its location.

You can also debug this issue with ```--log-level DEBUG``` and see the output, perhaps it can help to investigate the root cause.

0 votes

Hello, @Husain Mithaiwala !  I have couple of questions that can lead to a root cause.


- is DOCKER_HOST is configured in your deployment or you want to use bitbucket default variable?

- are you pointing which deployment name you want to use? Example of deployment:

your-pipeline: &your-pipeline
name: Your pipeline
deployment: <DeploymentName> (eg Production)
- docker


 Regards, Galyna

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

108 views 2 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you