git-client: add note about GIT_SSH_COMMAND env variants

This commit is contained in:
2026-02-10 14:25:17 +01:00
parent 843ac23770
commit 0155d51d3d

View File

@@ -400,6 +400,12 @@ std::optional<QString> GitClient::gitPull() {
If remote host keys are changed, then If remote host keys are changed, then
export GIT_SSH_COMMAND="ssh -i /opt/app/tools/atbupdate/.keys/id_ed25519_ptuConfig" export GIT_SSH_COMMAND="ssh -i /opt/app/tools/atbupdate/.keys/id_ed25519_ptuConfig"
... or ignore host key checking:
export GIT_SSH_COMMAND="ssh -i /opt/app/tools/atbupdate/.keys/id_ed25519_ptuConfig -o StrictHostKeyChecking=no"
... or use separate known_hosts file:
export GIT_SSH_COMMAND="ssh -i /mypath/.keys/id_ed25519 -o StrictHostKeyChecking=yes -o UserKnownHostsFile=/opt/app/tools/atbupdate/.keys/known_hosts
git pull git pull
leads to the following warning/error message: leads to the following warning/error message: