docker-py icon indicating copy to clipboard operation
docker-py copied to clipboard

No authentication methods available

Open manojsitapara opened this issue 5 years ago • 3 comments

I am trying to create and run docker container from my website on remote machine.

I am using Windows as development machine and trying to connect linux machine, so When I tried to run following command from windows machine, it works fine, But I am getting issue while deploying code on Linux server.

client = docker.DockerClient(base_url='SSH://[email protected]')

But I have deploy my Django web application on Linux server and trying to create and run docker on another Linux machine I am getting error like this

No authentication methods available

Please note: I am able to connect Linux server 1 to server 2 by following command (I can access Linux Server 2 from Linux Server 1 Password less because I want to create automation process for docker)

ssh [email protected]

I have searched a lot on internet to find out solution, but unable to get it.

manojsitapara avatar Aug 29 '20 09:08 manojsitapara

Hey there, not sure if you're still having this issue more than 2 years later. But if so, you need to setup key-based ssh authentication. Specifically, for linux systems, you'll need a private key at ~/.ssh/id_rsa or have a location set in your ~/.ssh/config

JacobCallahan avatar Aug 26 '22 13:08 JacobCallahan

Thank you @JacobCallahan for you ur reply. I was able to resolve the issue.

manojsitapara avatar Aug 26 '22 13:08 manojsitapara

For anyone that comes across this, can you outline what you did to solve it?

JacobCallahan avatar Aug 26 '22 14:08 JacobCallahan