-
-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User is ignored in an SSH DOCKER_HOST #107
Comments
I noticed an additional problem. It isn't possible to pass the agent either, so ssh-agent-based auth (which is the only option that can actually work with Docker) doesn't work. |
You should be able to pass an "agent" to the Modem. I simplified it, by using the already existing "host" and "port" from Modem's constructor. |
Due to a combination of
defaultOpts
(https://github.com/apocas/docker-modem/blob/master/lib/modem.js#L16) and this line, any value passed in as the user in DOCKER_HOST would be ignored. I believe the behavior would be that the current user is used. There's a high chance that won't work, however--if the local username is not the same as the SSH username.Ideally we should alter
defaultOpts
to permit things likessh://user@host
The text was updated successfully, but these errors were encountered: