From 8699c929fb9e07303a6a779e8d4713c4a837b33d Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Fri, 15 Apr 2011 01:09:01 +0000 Subject: glusterd / geo-replication: set location of ssh keyfile for gsyncd Signed-off-by: Csaba Henk Signed-off-by: Anand Avati BUG: 2756 (support for providing custom ssh private key) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2756 --- xlators/mgmt/glusterd/src/glusterd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'xlators/mgmt/glusterd/src/glusterd.c') 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; -- cgit