feat(buildah): get rsa keys of the host for strict checking

This commit is contained in:
yeti 2025-05-13 12:18:16 +01:00
parent 22196ab0c3
commit fe0164e066

View File

@ -27,7 +27,9 @@ buildah copy "$ctr" 00-allow-git.conf /etc/ssh/ssh_config.d/
buildah run --user $DEV_USER "$ctr" -- bash -c "\
nvim --headless \"+Lazy! sync\" +qa && sleep 1 && \
nvim --headless \"+Lazy! sync\" +qa && sleep 1 && \
nvim --headless \"+Lazy! sync\" +qa
nvim --headless \"+Lazy! sync\" +qa && \
mkdir -p $DEV_HOME/.ssh && ssh-keyscan -p 2222 10.88.0.1 >> ~/.ssh/known_hosts && \
ssh-keyscan -p 22 github.com >> ~/.ssh/known_hosts
"
# lock the files