How do I setup ssh from jenkinsci/blueocean docker to remote? I am running jenkinsci/blueocean docker locally as per the instructions of running jenkins using a docker on jenkins.io. Everything seems to be working correctly but when I docker exec into the docker, I can't use sudo and I cant create a home directory for the jenkins user with an .ssh directory.

There seems to be apk package manager but if this functionality is not out of the box it makes me wonder if I am doing this wrong.

Does anyone have any experience setting up a basic ssh config on this docker image?
You can run an ssh server in the container as the ENTRYPOINT. It can either be started in the foreground : 

ENTRYPOINT ["/usr/sbin/sshd", "-D","-p","22"]


Ensure that you have openssh installed and host keys setup.

Perhaps this Ansible role would be illustrative