In this post I will walk you through my process of setting up ssh access to your docker container.
Why run an ssh server within a contai...
For further actions, you may consider blocking this person and/or reporting abuse
Thanks, useful
For those of you who are trying to login with root creds. The user needs to be test and the password is test as well.
After creating the container hit: ssh test@ -p then hit test as the password.
You may also want this line before
RUN service ssh start
Thank you so much!
Thanks!
Thank you so much!
One thing though: I attempted to run
docker run IMAGE_NAME -p 22:22
but it gave me an error. Runningdocker run -p 22:22 IMAGE_NAME
worked instead.Thanks a lot for this post. This helped me in setting up a docker container as a Jenkins build agent in my learning environment.
Is there a way to add public and private key authentication
Thanks! :-)
Thanks for sharing.
Thanks ! I was just looking for this configuration. It works fine
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_ecdsa_key
Could not load host key: /etc/ssh/ssh_host_ed25519_key