git-client: add note about GIT_SSH_COMMAND env variants
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user