[why] ssh password-free login for testbox of docker
[how] Add ssh private key for docker, for automatically establish the ssh reverse tunnel between sut and port map container.
Signed-off-by: Xiao Shenwei xiaoshenwei96@163.com --- providers/docker/bin/entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/providers/docker/bin/entrypoint.sh b/providers/docker/bin/entrypoint.sh index 63cb605..feb5edf 100755 --- a/providers/docker/bin/entrypoint.sh +++ b/providers/docker/bin/entrypoint.sh @@ -2,4 +2,6 @@ # SPDX-License-Identifier: MulanPSL-2.0+ # Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved.
+mkdir -p /root/.ssh +cp /lkp/lkp/src/rootfs/addon/root/.ssh/id_rsa /root/.ssh/ sh /lkp/lkp/src/rootfs/addon/etc/init.d/lkp-bootstrap