sonic-net / sonic-mgmt

Configuration management examples for SONiC
Other
173 stars 689 forks source link

[Bug]: sshd not started in docker ptf container #13545

Open SavchukRomanLv opened 5 days ago

SavchukRomanLv commented 5 days ago

Issue Description

After 5/30/24 latest docker ptf image had problem to connect via ssh to docker ptf container

Results you see

add-topo fails with at step vm_set : wait until ptf is reachable Timeout when waiting for docker_ptf_ip :22

From docker ptf logs: cat /tmp/sshd.err.log /run/sshd must be owned by root and not group or world-writable.

This means problem with permissions, possible fix: sudo chown root:root /run/sshd sudo chmod 755 /run/sshd

Start sshd: service ssh start

Results you expected to see

User able to connect to docker ptf container

Is it platform specific

generic

Relevant log output

cat /tmp/sshd.err.log
**/run/sshd must be owned by root and not group or world-writable.**

Output of show version

No response

Attach files (if any)

No response

bingwang-ms commented 5 days ago

Hi @wangxin , could you please help take a look?