From 101b7e5e227e84268d3bbf4400608f85ffdf3259 Mon Sep 17 00:00:00 2001 From: smf Date: Mon, 4 Mar 2024 22:19:33 +0800 Subject: [PATCH] ssh test --- docker-entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 87367b0..003fe31 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -97,6 +97,9 @@ echo "Add known hosts" ssh-keyscan -p $INPUT_REMOTE_DOCKER_PORT "$SSH_HOST" >> ~/.ssh/known_hosts ssh-keyscan -p $INPUT_REMOTE_DOCKER_PORT "$SSH_HOST" >> /etc/ssh/ssh_known_hosts +echo "test ssh connection" +execute_ssh "echo `w`" + set context echo "Create docker context" docker context create remote --docker "host=ssh://$INPUT_REMOTE_DOCKER_HOST:$INPUT_REMOTE_DOCKER_PORT"