2023-05-02 14:14:39 +02:00
|
|
|
FROM fedora:38
|
|
|
|
|
|
|
|
RUN dnf install openssh-server -y
|
|
|
|
RUN ssh-keygen -A -v
|
|
|
|
|
2023-05-02 18:25:49 +02:00
|
|
|
RUN useradd -m -G wheel test
|
|
|
|
RUN echo 'test:test' | chpasswd
|
2023-05-02 14:35:12 +02:00
|
|
|
|
2023-05-02 14:14:39 +02:00
|
|
|
EXPOSE 22
|
|
|
|
CMD ["/usr/sbin/sshd", "-D", "-o", "ListenAddress=0.0.0.0"]
|