mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
enhance: add -o StrictHostKeyChecking=accept-new
option to ssh command
This commit is contained in:
parent
5fed050400
commit
1e0a2ab5f7
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ namespace SourceGit.Commands
|
||||||
|
|
||||||
// If an SSH private key was provided, sets the environment.
|
// If an SSH private key was provided, sets the environment.
|
||||||
if (!string.IsNullOrEmpty(SSHKey))
|
if (!string.IsNullOrEmpty(SSHKey))
|
||||||
start.Environment.Add("GIT_SSH_COMMAND", $"ssh -i '{SSHKey}'");
|
start.Environment.Add("GIT_SSH_COMMAND", $"ssh -o StrictHostKeyChecking=accept-new -i '{SSHKey}'");
|
||||||
else
|
else
|
||||||
start.Arguments += "-c credential.helper=manager ";
|
start.Arguments += "-c credential.helper=manager ";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue