更新 Dockerfile

add ssh-keygen
This commit is contained in:
wangzixiang 2024-06-04 17:38:25 +08:00
parent 20cbb922c6
commit 82b72e6fe6
1 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,8 @@ RUN apt-get install -y net-tools
RUN apt-get install -y iputils-ping RUN apt-get install -y iputils-ping
RUN apt-get install -y openssh-server RUN apt-get install -y openssh-server
RUN ssh-keygen -t rsa -b 4096 -N "" -f /root/.ssh/id_rsa
CMD ssh \ CMD ssh \
-C \ -C \
-f \ -f \