Skip to content

Add support for remote connections using SSH #1130

Open

Description

@albertvipe

On the latest release of docker (18.09) they have added support for remote connections using SSH.

It would be awesome to have it implemented and released on docker-java.

Activity

  1. jruhe-adesso commented on Dec 11, 2019

    @jruhe-adesso

    ssh:// scheme still unsupported :(

  2. boxlady commented on Apr 4, 2020

    @boxlady

    This would be nice... a more secure remote connection.

  3. firexel commented on May 15, 2020

    @firexel

    Since docker-machine is slowly dying, this would be nice to have to upload builds

  4. pie-ai commented on Jun 2, 2020

    @pie-ai
  5. mwiede commented on Jun 2, 2020

    @mwiede
    Contributor
  6. bsideup commented on Jun 4, 2020

    @bsideup
    Member

    @mwiede nice! FYI in Testcontainers, we use the following dependency:
    org.glassfish.main.external:trilead-ssh2-repackaged:4.1.2

    It was used for port forwarding and worked pretty well :) you may want to try it in your prototype

  7. unikitty37 commented on Jun 19, 2020

    @unikitty37

    I use RubyMine as an IDE. It uses this library to connect to Docker. I now need to access Docker containers on a remote machine, using SSH.

    I can't do it from within the IDE, because this library doesn't support SSH. That means RubyMine throws all sorts of warnings about things not being installed, simply because it can't see the containers.

    Is there any progress on this?

    Failing that, is there a simple solution that works with RubyMine? The link posted by @pie-ai doesn't help, as entering /path/to/docker.sock as the engine API in RubyMine simply produces a NullPointerException. Entering file:///path/to/docker.sock just brings us back to "unsupported protocol scheme found" once more.

  8. trajano commented on Jun 20, 2020

    @trajano
    Contributor

    Does the SSH transport merely call the docker command on the remote or does it do something special to provide it access to the docker daemon?

  9. mwiede commented on Jun 20, 2020

    @mwiede
    Contributor
  10. stale commented on Jul 20, 2020

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  11. unikitty37 commented on Jul 20, 2020

    @unikitty37

    I'd hope that this issue wouldn't get auto-closed as stale!

    I'd also hope that JetBrains might be able to take a look at fixing this, since they're making money off products using this library…

  12. bsideup commented on Jul 20, 2020

    @bsideup
    Member

    @unikitty37 although JetBrains are indirectly making money with docker-java, there is currently no major investment into maintaining docker-java from their side, nor sponsor the current maintainers.

    If anything to be done on this issue, you should expect it from the community (e.g. the efforts by @mwiede).
    Unfortunately, due to my limited capacity, I wasn't able to look at the implementation yet, but I eventually will. Thanks for up'ing the issue 👍 I ACKed it, so that it won't get stale anymore.

  13. bsideup commented on Feb 15, 2022

    @bsideup
    Member

    FYI #1818 removes the too restrictive protocol check in DefaultDockerClientConfig, so it becomes transport's concern whether some protocol is supported or not.

  14. mwiede commented on Feb 15, 2022

    @mwiede
    Contributor

    Thanks @bsideup this should make it possible to publish ssh transport module of #1440 separate from this project.

  15. bsideup commented on Feb 15, 2022

    @bsideup
    Member

    @mwiede yep, that was an intention - in the current form, it would be hard to accept it to docker-java's repo, but one can publish it separately, collect feedback, and, once it is stable enough, we could reconsider adding it to docker-java. Thank you!

  16. mwiede commented on Feb 22, 2022

    @mwiede
    Contributor
  17. fsdrw08 commented on Sep 24, 2023

    @fsdrw08

    any update about this request?

  18. cvgaviao commented on May 30, 2024

    @cvgaviao

    FYI I have released a module supporting ssh protocol at https://github.com/mwiede/docker-java-transport-jsch

    Is there a way to use it with TestContainers ?

  19. fostermi commented on Oct 24, 2024

    @fostermi

    @mwiede how would one deploy/install/use the docker-java-transport-jsch module in a running Jenkins instance, if you wouldn't mind?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions