Skip to content

Commit 14aeb43

Browse files
committed
Skip adding known hosts in Tailscale SSH
1 parent 6ea5585 commit 14aeb43

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docker-entrypoint.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ else
5858
#chmod 600 "~/.ssh"
5959
eval $(ssh-agent)
6060
ssh-add ~/.ssh/id_rsa
61+
echo "Add known hosts"
62+
ssh-keyscan -p $INPUT_SSH_PORT "$SSH_HOST" >> ~/.ssh/known_hosts
63+
ssh-keyscan -p $INPUT_SSH_PORT "$SSH_HOST" >> /etc/ssh/ssh_known_hosts
6164
fi
6265

63-
echo "Add known hosts"
64-
ssh-keyscan -p $INPUT_SSH_PORT "$SSH_HOST" >> ~/.ssh/known_hosts
65-
ssh-keyscan -p $INPUT_SSH_PORT "$SSH_HOST" >> /etc/ssh/ssh_known_hosts
6666
# set context
6767
echo "Create docker context"
6868
docker context create remote --docker "host=ssh://$INPUT_REMOTE_DOCKER_HOST:$INPUT_SSH_PORT"

0 commit comments

Comments
 (0)