fix(qemu images): set sshd UseDNS=no
This commit is contained in:
parent
2df0d81782
commit
1a0578c541
@ -28,6 +28,8 @@ RUN sed -i '/PermitEmptyPasswords/d' $TMPDIR/etc/ssh/sshd_config
|
|||||||
RUN echo PermitEmptyPasswords yes >> $TMPDIR/etc/ssh/sshd_config
|
RUN echo PermitEmptyPasswords yes >> $TMPDIR/etc/ssh/sshd_config
|
||||||
RUN sed -i '/PermitRootLogin/d' $TMPDIR/etc/ssh/sshd_config
|
RUN sed -i '/PermitRootLogin/d' $TMPDIR/etc/ssh/sshd_config
|
||||||
RUN echo PermitRootLogin yes >> $TMPDIR/etc/ssh/sshd_config
|
RUN echo PermitRootLogin yes >> $TMPDIR/etc/ssh/sshd_config
|
||||||
|
RUN sed -i '/UseDNS/d' $TMPDIR/etc/ssh/sshd_config
|
||||||
|
RUN echo UseDNS no >> $TMPDIR/etc/ssh/sshd_config
|
||||||
|
|
||||||
# network workaround
|
# network workaround
|
||||||
RUN chmod +x $TMPDIR/etc/rc.local
|
RUN chmod +x $TMPDIR/etc/rc.local
|
||||||
|
@ -37,6 +37,8 @@ RUN sed -i '/PermitEmptyPasswords/d' $TMPDIR/etc/ssh/sshd_config
|
|||||||
RUN echo PermitEmptyPasswords yes >> $TMPDIR/etc/ssh/sshd_config
|
RUN echo PermitEmptyPasswords yes >> $TMPDIR/etc/ssh/sshd_config
|
||||||
RUN sed -i '/PermitRootLogin/d' $TMPDIR/etc/ssh/sshd_config
|
RUN sed -i '/PermitRootLogin/d' $TMPDIR/etc/ssh/sshd_config
|
||||||
RUN echo PermitRootLogin yes >> $TMPDIR/etc/ssh/sshd_config
|
RUN echo PermitRootLogin yes >> $TMPDIR/etc/ssh/sshd_config
|
||||||
|
RUN sed -i '/UseDNS/d' $TMPDIR/etc/ssh/sshd_config
|
||||||
|
RUN echo UseDNS no >> $TMPDIR/etc/ssh/sshd_config
|
||||||
|
|
||||||
# network workaround
|
# network workaround
|
||||||
RUN chmod +x $TMPDIR/etc/rc.local
|
RUN chmod +x $TMPDIR/etc/rc.local
|
||||||
|
@ -28,6 +28,8 @@ RUN sed -i '/PermitEmptyPasswords/d' $TMPDIR/etc/ssh/sshd_config
|
|||||||
RUN echo PermitEmptyPasswords yes >> $TMPDIR/etc/ssh/sshd_config
|
RUN echo PermitEmptyPasswords yes >> $TMPDIR/etc/ssh/sshd_config
|
||||||
RUN sed -i '/PermitRootLogin/d' $TMPDIR/etc/ssh/sshd_config
|
RUN sed -i '/PermitRootLogin/d' $TMPDIR/etc/ssh/sshd_config
|
||||||
RUN echo PermitRootLogin yes >> $TMPDIR/etc/ssh/sshd_config
|
RUN echo PermitRootLogin yes >> $TMPDIR/etc/ssh/sshd_config
|
||||||
|
RUN sed -i '/UseDNS/d' $TMPDIR/etc/ssh/sshd_config
|
||||||
|
RUN echo UseDNS no >> $TMPDIR/etc/ssh/sshd_config
|
||||||
|
|
||||||
# network workaround
|
# network workaround
|
||||||
RUN chmod +x $TMPDIR/etc/rc.local
|
RUN chmod +x $TMPDIR/etc/rc.local
|
||||||
|
@ -11,6 +11,8 @@ sed -i '/PermitEmptyPasswords/d' $TMPDIR/etc/ssh/sshd_config
|
|||||||
echo PermitEmptyPasswords yes >> $TMPDIR/etc/ssh/sshd_config
|
echo PermitEmptyPasswords yes >> $TMPDIR/etc/ssh/sshd_config
|
||||||
sed -i '/PermitRootLogin/d' $TMPDIR/etc/ssh/sshd_config
|
sed -i '/PermitRootLogin/d' $TMPDIR/etc/ssh/sshd_config
|
||||||
echo PermitRootLogin yes >> $TMPDIR/etc/ssh/sshd_config
|
echo PermitRootLogin yes >> $TMPDIR/etc/ssh/sshd_config
|
||||||
|
sed -i '/UseDNS/d' $TMPDIR/etc/ssh/sshd_config
|
||||||
|
echo UseDNS no >> $TMPDIR/etc/ssh/sshd_config
|
||||||
|
|
||||||
echo '#!/bin/sh' > $TMPDIR/etc/rc.local
|
echo '#!/bin/sh' > $TMPDIR/etc/rc.local
|
||||||
echo 'dhclient' >> $TMPDIR/etc/rc.local
|
echo 'dhclient' >> $TMPDIR/etc/rc.local
|
||||||
|
@ -30,6 +30,8 @@ RUN sed -i '/PermitEmptyPasswords/d' $TMPDIR/etc/ssh/sshd_config
|
|||||||
RUN echo PermitEmptyPasswords yes >> $TMPDIR/etc/ssh/sshd_config
|
RUN echo PermitEmptyPasswords yes >> $TMPDIR/etc/ssh/sshd_config
|
||||||
RUN sed -i '/PermitRootLogin/d' $TMPDIR/etc/ssh/sshd_config
|
RUN sed -i '/PermitRootLogin/d' $TMPDIR/etc/ssh/sshd_config
|
||||||
RUN echo PermitRootLogin yes >> $TMPDIR/etc/ssh/sshd_config
|
RUN echo PermitRootLogin yes >> $TMPDIR/etc/ssh/sshd_config
|
||||||
|
RUN sed -i '/UseDNS/d' $TMPDIR/etc/ssh/sshd_config
|
||||||
|
RUN echo UseDNS no >> $TMPDIR/etc/ssh/sshd_config
|
||||||
|
|
||||||
# network workaround
|
# network workaround
|
||||||
RUN chmod +x $TMPDIR/etc/rc.local
|
RUN chmod +x $TMPDIR/etc/rc.local
|
||||||
|
@ -11,6 +11,8 @@ sed -i '/PermitEmptyPasswords/d' $TMPDIR/etc/ssh/sshd_config
|
|||||||
echo PermitEmptyPasswords yes >> $TMPDIR/etc/ssh/sshd_config
|
echo PermitEmptyPasswords yes >> $TMPDIR/etc/ssh/sshd_config
|
||||||
sed -i '/PermitRootLogin/d' $TMPDIR/etc/ssh/sshd_config
|
sed -i '/PermitRootLogin/d' $TMPDIR/etc/ssh/sshd_config
|
||||||
echo PermitRootLogin yes >> $TMPDIR/etc/ssh/sshd_config
|
echo PermitRootLogin yes >> $TMPDIR/etc/ssh/sshd_config
|
||||||
|
sed -i '/UseDNS/d' $TMPDIR/etc/ssh/sshd_config
|
||||||
|
echo UseDNS no >> $TMPDIR/etc/ssh/sshd_config
|
||||||
|
|
||||||
echo '#!/bin/sh' > $TMPDIR/etc/rc.local
|
echo '#!/bin/sh' > $TMPDIR/etc/rc.local
|
||||||
echo 'dhclient eth0' >> $TMPDIR/etc/rc.local
|
echo 'dhclient eth0' >> $TMPDIR/etc/rc.local
|
||||||
|
@ -11,6 +11,8 @@ sed -i '/PermitEmptyPasswords/d' $TMPDIR/etc/ssh/sshd_config
|
|||||||
echo PermitEmptyPasswords yes >> $TMPDIR/etc/ssh/sshd_config
|
echo PermitEmptyPasswords yes >> $TMPDIR/etc/ssh/sshd_config
|
||||||
sed -i '/PermitRootLogin/d' $TMPDIR/etc/ssh/sshd_config
|
sed -i '/PermitRootLogin/d' $TMPDIR/etc/ssh/sshd_config
|
||||||
echo PermitRootLogin yes >> $TMPDIR/etc/ssh/sshd_config
|
echo PermitRootLogin yes >> $TMPDIR/etc/ssh/sshd_config
|
||||||
|
sed -i '/UseDNS/d' $TMPDIR/etc/ssh/sshd_config
|
||||||
|
echo UseDNS no >> $TMPDIR/etc/ssh/sshd_config
|
||||||
|
|
||||||
echo '#!/bin/sh' > $TMPDIR/etc/rc.local
|
echo '#!/bin/sh' > $TMPDIR/etc/rc.local
|
||||||
echo 'dhclient || dhcpcd' >> $TMPDIR/etc/rc.local
|
echo 'dhclient || dhcpcd' >> $TMPDIR/etc/rc.local
|
||||||
|
Loading…
Reference in New Issue
Block a user