[ptf] Fixed root ssh authentication issue (#3192)
Signed-off-by: Nazarii Hnydyn <nazariig@mellanox.com>
This commit is contained in:
parent
39b641eb89
commit
77b3a18dd0
@ -98,9 +98,9 @@ RUN rm -rf /debs \
|
|||||||
## Adjust sshd settings
|
## Adjust sshd settings
|
||||||
RUN mkdir /var/run/sshd \
|
RUN mkdir /var/run/sshd \
|
||||||
&& echo 'root:root' | chpasswd \
|
&& echo 'root:root' | chpasswd \
|
||||||
&& sed -ri 's/^PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config \
|
&& sed -ri '/^#?PermitRootLogin/c\PermitRootLogin yes' /etc/ssh/sshd_config \
|
||||||
&& sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config \
|
&& sed -ri '/^#?UsePAM/c\UsePAM no' /etc/ssh/sshd_config \
|
||||||
&& sed -i '$aUseDNS no' /etc/ssh/sshd_config
|
&& sed -ri '/^#?UseDNS/c\UseDNS no' /etc/ssh/sshd_config
|
||||||
|
|
||||||
COPY ["supervisord.conf", "/etc/supervisor/"]
|
COPY ["supervisord.conf", "/etc/supervisor/"]
|
||||||
COPY ["conf.d/supervisord.conf", "conf.d/sshd.conf", "conf.d/ptf_nn_agent.conf", "/etc/supervisor/conf.d/"]
|
COPY ["conf.d/supervisord.conf", "conf.d/sshd.conf", "conf.d/ptf_nn_agent.conf", "/etc/supervisor/conf.d/"]
|
||||||
|
Reference in New Issue
Block a user