I tried to do this with panubo/sshd available in Docker Hub. To make
that SSHd run on port 22, I had to resort to specifying my own
sshd_config. When I did that, the software didn't work. I documented
that at
https://github.com/panubo/docker-sshd/issues/73
Then I tried other SSHd images and they worked well with my sshd_config,
but it seems these other images did not have support for PAM ---
``usePAM yes'' made sshd say it was not a supported option. I don't
know if that was the reason I couldn't use RSA keys to log in. Password
authentication worked just fine when I tried, so everything worked,
except for using private keys to log in, which is what I needed.
Now I'm thinking I should be just running a very simple server. All I
want is SFTP (not shell accesss), so any simple server that supports rsa
keys and provides SFTP is good enough for me. If there's always a
Docker image out there, even better.
Any recommendations? Thank you!