1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-29 10:12:41 +01:00

Make ssh-connect more robust against known_host issues

I think the daemon is choking on this, prevent it from failing.

Auditors: btrahan
This commit is contained in:
epriestley 2013-11-22 16:24:24 -08:00
parent fdb03a424d
commit 58530669a2

View file

@ -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();