jeroenpeeters / docker-ssh

SSH Server for Docker containers ~ Because every container should be accessible
GNU General Public License v2.0
638 stars 89 forks source link

need more help getting started #35

Closed uptimestar closed 6 years ago

uptimestar commented 6 years ago

Hi, sadly I need more documentation to get started. I get Received disconnect from ::1 port 2222:2:

Is there a sample container to connect to? It wont connect to mine. Maybe even a shell script that wraps the command.

jeroenpeeters commented 6 years ago
docker run -d --name my-nginx nginx
docker run -d -p 2222:22 \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -e FILTERS={\"name\":[\"^/my-nginx$\"]} -e AUTH_MECHANISM=noAuth \
  jeroenpeeters/docker-ssh

and then connect to the ssh service running on port 2222

ssh -p 2222 localhost

uptimestar commented 6 years ago

I did just that: Received disconnect from ::1 port 2222:2: Disconnected from ::1 port 2222

jeroenpeeters commented 6 years ago

Can you look around for more debug information? I can just run the snippet above without any problems. At this point I don't know how to assist.