Skip to content

How to connect remote docker instance using Pulumi? #9010

Discussion options

You must be logged in to vote

This is ultimately not a Pulumi problem, but an issue with SSH. In order for the docker provider to connect correctly, you need to be able to connect to the remoteInstance with passworddless SSH.

In order to do this, you'll need to make sure your private key uses an SSH agent or there's no password on the private key.

You'll also need to disable host key verification. The quickest way to do this is to add the following to ~/.ssh/config:

Host *
    StrictHostKeyChecking no

This is not recommended permanently (you should scope the verification to a specific hostname and/or configure verification correctly) but this will allow you to connect to the new instance.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@madhank93
Comment options

Answer selected by aaronkao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants