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