ubuntu-sshd icon indicating copy to clipboard operation
ubuntu-sshd copied to clipboard

What is the use case for this image?

Open rastasheep opened this issue 7 years ago • 12 comments

Hi all!

Thanks for using my image. This is an old (forgotten) side project which wasnt updated in awhile, but with help of automatic builds on docker hub, it's still up to date and it seems that it is used widely (currently it was downloaded more than 100k times).

Can you share your use cases for this kind of image? I would like to invest some time in improvement and those informations would be more than useful to me, tnx.

rastasheep avatar Oct 26 '16 17:10 rastasheep

It's useful for integration testing of configuration management logic!

ncs-alane avatar Dec 17 '16 21:12 ncs-alane

@ncs-alane tnx, interesting i've always used vagrant for testing CM stuff :)

rastasheep avatar Dec 19 '16 09:12 rastasheep

I use it for learning Docker. also why can't I attach to container? I assume /usr/sbin/sshd -D blocking container I/O? then how do we make container start sshd when it start but also don't block user I/O?

KhumpuW avatar Dec 28 '16 10:12 KhumpuW

Really thanks for this. I was looking for a quick way to test ansible deployment and this was fantastic.

sam-rad avatar May 03 '17 22:05 sam-rad

@rastasheep We are currently using it as a connector for ssh tunnels. We are currently using a modified version, it would be very helpful if GatewayPorts was enabled, or if there at least were a way to toggle this. :+1:

Foorack avatar Jul 09 '17 20:07 Foorack

@Foorack tnx :) It sounds like modifying configuration in runtime with env variables would solve your use-case

rastasheep avatar Jul 09 '17 20:07 rastasheep

@rastasheep Yes, it would. Currently, we are having to build our own version with an extra line in the Dockerfile enabling GatewayPorts. That would be a great improvement! :smiley:

Foorack avatar Jul 09 '17 20:07 Foorack

@Foorack awesome, i've created an issue so if anyone wants to help it's good to go .. tnx again for the feedback!

rastasheep avatar Jul 09 '17 21:07 rastasheep

I'm interested in having a dockerized sshd on my synology, ideally one where I can:

  • customize ports (optional, can do via port fowarding)
  • create and restrict ssh users (create sudoer user, disable remote root login)
  • require ssh key login
  • have a slightly more configurable "landing" shell (for ssh tunneling, simple bash / network testing tools, quick-and-dirty SCP'ing of files)

joncamfield avatar Dec 04 '17 18:12 joncamfield

I wanted an ability to have a jailed environment for ssh'ing into a network. I started with your image (which I later found almost in its entirety on docker's site ... but I wanted it to run as a non-privileged user. In case you're curious, my version is here.

cognitiaclaeves avatar May 13 '18 15:05 cognitiaclaeves

I'm using this in our Kubernetes cluster, just for a quick and dirty easy access to persistent volumes via sftp. Works really nice for the 5 min jobs 👍

RamonSmit avatar Sep 16 '18 19:09 RamonSmit

I'm using it for testing SSH scripts targeting Ubuntu.

dagguh avatar Apr 09 '21 15:04 dagguh