summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/mgmt/glusterd/src/glusterd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd.c b/xlators/mgmt/glusterd/src/glusterd.c
index a0b654fc7..1e271af08 100644
--- a/xlators/mgmt/glusterd/src/glusterd.c
+++ b/xlators/mgmt/glusterd/src/glusterd.c
@@ -274,8 +274,10 @@ configure_syncaemon (xlator_t *this, const char *workdir)
goto out;
/* ssh-command */
- strcpy (cmd + blen,
- "ssh-command 'ssh -oPasswordAuthentication=no' . .");
+ sprintf (cmd + blen,
+ "ssh-command "
+ "'ssh -oPasswordAuthentication=no -oStrictHostKeyChecking=no "
+ "-i %s/"GEOREP"/secret.pem' . .", workdir);
ret = system (cmd);
if (ret)
goto out;