File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,13 +6,8 @@ RUN echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config && \
66 echo "PermitEmptyPasswords yes" >> /etc/ssh/sshd_config && \
77 echo "PermitRootLogin yes" >> /etc/ssh/sshd_config && \
88 echo "KexAlgorithms curve25519-sha256,curve25519-sha256@libssh.org" >> /etc/ssh/sshd_config && \
9- echo "DisableForwarding no" >> /etc/ssh/sshd_config && \
10- echo "PermitOpen any" >> /etc/ssh/sshd_config && \
11- echo "PermitListen any" >> /etc/ssh/sshd_config && \
12- echo "" >> /etc/ssh/sshd_config && \
139 echo "Match all" >> /etc/ssh/sshd_config && \
14- echo " AllowTcpForwarding yes" >> /etc/ssh/sshd_config && \
15- echo " DisableForwarding no" >> /etc/ssh/sshd_config
10+ echo " AllowTcpForwarding yes" >> /etc/ssh/sshd_config
1611
1712RUN passwd -d root
1813RUN ssh-keygen -A
Original file line number Diff line number Diff line change @@ -5,14 +5,7 @@ RUN apk add --no-cache openssh-server
55RUN echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config && \
66 echo "PermitEmptyPasswords yes" >> /etc/ssh/sshd_config && \
77 echo "PermitRootLogin yes" >> /etc/ssh/sshd_config && \
8- echo "KexAlgorithms curve25519-sha256,curve25519-sha256@libssh.org" >> /etc/ssh/sshd_config && \
9- echo "DisableForwarding no" >> /etc/ssh/sshd_config && \
10- echo "PermitOpen any" >> /etc/ssh/sshd_config && \
11- echo "PermitListen any" >> /etc/ssh/sshd_config && \
12- echo "" >> /etc/ssh/sshd_config && \
13- echo "Match all" >> /etc/ssh/sshd_config && \
14- echo " AllowTcpForwarding yes" >> /etc/ssh/sshd_config && \
15- echo " DisableForwarding no" >> /etc/ssh/sshd_config
8+ echo "KexAlgorithms curve25519-sha256,curve25519-sha256@libssh.org" >> /etc/ssh/sshd_config
169
1710RUN passwd -d root
1811RUN ssh-keygen -A
You can’t perform that action at this time.
0 commit comments