mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-10-31 13:03:20 -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 (!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
|
||||
start.Arguments += "-c credential.helper=manager ";
|
||||
|
||||
|
|
Loading…
Reference in a new issue