From 58530669a22f97f2777878912a70eb2dc25b9917 Mon Sep 17 00:00:00 2001 From: epriestley Date: Fri, 22 Nov 2013 16:24:24 -0800 Subject: [PATCH] Make `ssh-connect` more robust against known_host issues I think the daemon is choking on this, prevent it from failing. Auditors: btrahan --- scripts/ssh/ssh-connect.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/ssh/ssh-connect.php b/scripts/ssh/ssh-connect.php index f02bafb936..639a319947 100755 --- a/scripts/ssh/ssh-connect.php +++ b/scripts/ssh/ssh-connect.php @@ -15,6 +15,11 @@ $pattern[] = 'ssh'; $pattern[] = '-o'; $pattern[] = 'StrictHostKeyChecking=no'; +// This prevents "known host" failures, and covers for issues where HOME is set +// to something unusual. +$pattern[] = '-o'; +$pattern[] = 'UserKnownHostsFile=/dev/null'; + $credential_phid = getenv('PHABRICATOR_CREDENTIAL'); if ($credential_phid) { $viewer = PhabricatorUser::getOmnipotentUser();