ssh-copy-id
Install your public key in a remote machine's authorized_keys. More information: <https://manned.org/ssh-copy-id>.
RUN apt-get update && \
apt-get install -y openssh-client
RUN apt-get update && \
apt-get install -y openssh-client
RUN apk add openssh-client
RUN pacman -S --noconfirm ssh-copy-id
RUN apt-get update && \
apt-get install -y openssh-client
RUN yum install -y openssh-clients
RUN dnf install -y openssh-clients
RUN apt-get update && \
apt-get install -y openssh-client