summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCsaba Henk <csaba@gluster.com>2011-04-15 01:09:01 +0000
committerAnand Avati <avati@gluster.com>2011-04-15 03:58:30 -0700
commit8699c929fb9e07303a6a779e8d4713c4a837b33d (patch)
treea7195993b1cd22fc358fad347e06dbb451618053
parent0c77e6f156e57717f9cd3feb35d589e36dcb831f (diff)
glusterd / geo-replication: set location of ssh keyfile for gsyncd
Signed-off-by: Csaba Henk <csaba@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 2756 (support for providing custom ssh private key) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2756
-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 a0b654fc721..1e271af0880 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;