]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-post-file: behave when sftp doesn't take -i
authorJoseph McDonald <joseph.mcdonald@alcatel-lucent.com>
Mon, 1 Jun 2015 22:00:39 +0000 (15:00 -0700)
committerSage Weil <sage@redhat.com>
Mon, 1 Jun 2015 22:37:58 +0000 (15:37 -0700)
Fixes: #11836
Signed-off-by: Joseph McDonald <joseph.mcdonald@alcatel-lucent.com>
src/ceph-post-file.in

index 9b922a6c94153c6e91b782c592108943b8be13c9..fed1666ae8fabccade63a4598c227e89986555b4 100755 (executable)
@@ -155,7 +155,7 @@ done
 cp "$ssh_key" "$t4"
 cp "${ssh_key}.pub" "$t4.pub"
 
-sftp -i $t4 \
+sftp -o "IdentityFile=$t4" \
     -C \
     -oCheckHostIP=no \
     -oGlobalKnownHostsFile=$known_hosts \